"Trebam nešto" - tema

Započeo Correlli, Jul 30, 2010, 15:11:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

if(strcmp(cmd, "/veh", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo[playerid][pAdmin] < 4)
{
    SendClientMessage(playerid, COLOR_GRAD1, "   {F81414}(Odbijeno){FFFFFF}Nemozes koristiti ovu komandu!");
    return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{F81414}Lexus {00C0FF}Komanda | {FFFFFF} /veh [carid] [color1] [color2]");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   Vozila nemogu ici ispod 400 ili iznad 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{F81414}Lexus {00C0FF}Komanda | {FFFFFF} /veh [carid] [color1] [color2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < -1 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Boja nemoze biti ispod 0 ili iznad 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{F81414}Lexus {00C0FF}Komanda | {FFFFFF} /veh [carid] [color1] [color2]");
return 1;
}
if(car == 520) Hydras ++;
if(car == 425) Hunters ++;
if(car == 430) Predators ++;
if(car == 432) Rhinos ++;
new color2;
color2 = strval(tmp);
if(color2 < -1 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Boja nemoze biti ispod 0 ili iznad 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y+5,Z+1, 0.0, color1, color2, 60000);
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
format(string, sizeof(string), "{FFAF00}Admin Spawn| {00C0FF}%s je spawnao vozilo id %d",sendername, carid);
SendAdminMessage(COLOR_GREY, string);
new housename[24]; GetVehicleName(carid, housename, sizeof(housename));
new area[24]; GetPlayer2DZone(playerid, area, sizeof(area));
format(string,sizeof(string), "[ADMIN]: %s je spawnao %s (%d) [%d] na svojoj poziciji (%s).",sendername,housename,car,carid,area);
ABroadCast(COLOR_LIGHTRED, string, 5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Spawned a %s (%d) [%d] (Color 1: %d | Color 2: %d) At His Position.",d,m,y,h,mi,s,sendername,housename,car,carid,color1,color2);
AdminLog(string);
}
return 1;
}




Evo je :*

Citat: pHon poslato Jul 03, 2011, 05:35:20 PRE PODNE
Pozdrav svima.

Može li mi netko napraviti,da kad netko nekome poÅ¡alje poruku (/sms) da to Admini vide,ne mislim na /Bigears i sl. Znači da Adminu doÄ'e neÅ¡to kao: " SMS | Ime_Prezime -> Ime_Prezime| [Tekst poruke]"

te da admini vide Å¡aptanja (/W) da im doÄ'e neÅ¡to kao: " Saptanje | Ime_Prezime -> Ime_Prezime | [text] "


Hvala na odgovoru,LP.





Bump
Poslednja Izmena: Jul 04, 2011, 10:50:42 PRE PODNE od pHon

Ispod poruke di pise ljudima stavi ovako

format(string, sizeof(string), "Admin Provjera SMS|%s salje: %s",sendername, result);
SendAdminMessage(COLOR_YELLOW, string);




Sad ovo neznam kako ovaj lik NEKOME salje .... neznam dali je giveplayer ili drugo ...
Poslednja Izmena: Jul 04, 2011, 10:57:46 PRE PODNE od Apokalipsa

Citat: pHon poslato Jul 04, 2011, 10:50:17 PRE PODNE
Citat: pHon poslato Jul 03, 2011, 05:35:20 PRE PODNE
Pozdrav svima.

Može li mi netko napraviti,da kad netko nekome poÅ¡alje poruku (/sms) da to Admini vide,ne mislim na /Bigears i sl. Znači da Adminu doÄ'e neÅ¡to kao: " SMS | Ime_Prezime -> Ime_Prezime| [Tekst poruke]"

te da admini vide Å¡aptanja (/W) da im doÄ'e neÅ¡to kao: " Saptanje | Ime_Prezime -> Ime_Prezime | [text] "


Hvala na odgovoru,LP.





Bump
Nempj vise da to radis ovo ti je vec treci za redom da tu nesto BUMP ako ti netko napraviti onda ce ti napraviti i stavis u temu razgovor u vezi samp skritpana komande /w i /sms i kako napraviti da to sta zelis.

lol nis te nisam skonto,nauci pisati :P

Ok necu vise bumpat xD
Poslednja Izmena: Jul 04, 2011, 11:35:40 PRE PODNE od pHon

Jel moze strcmp komanda za /areci



strcmp komanda /prison i /mute s timerom?

Znači, /prison- /prison [ID/Dio imena] [Vrijeme] [Razlog]

/mute- /mute [ID/Dio Imena] [Vrijeme]


Hvala i LP
Poslednja Izmena: Jul 04, 2011, 16:23:59 POSLE PODNE od pHon

Citat: System32 poslato Jun 30, 2011, 22:33:28 POSLE PODNE
koristis ovu funkciju u komandi /sms ili /pm kako je vec
stock ABroadCast(color,const string[])
{
foreach(Player, i)
if (IsPlayerAdmin(i) || GetPVarInt(i, "Admin") >= 1)
{
SendClientMessage(i, color, string);
}
return 1;
}




if(strcmp(cmd, "/txt", true) == 0 || strcmp(cmd, "/t", true) == 0 || strcmp(cmd, "/sms", true) == 0)
{
   if(IsPlayerConnected(playerid))
{
   if(gPlayerLogged[playerid] == 0)
       {
           SendClientMessage(playerid, COLOR_BLUE, "   Niste se ulogovali!");
           return 1;
       }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_SUPER, "KORISTI: (/t)ext [phonenumber] [text chat]");
return 1;
}
if(PlayerInfo[playerid][pPnumber] == 0)
{
SendClientMessage(playerid, COLOR_SUPER, "  Nemate mobilni telefon...");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s vadi mobilni telefon.", sendername);
ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
new phonenumb = strval(tmp);
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_SUPER, "KORISTI: (/t)ext [phonenumber] [text chat]");
return 1;
}
if(phonenumb == 555)
{
if ((strcmp("yes", result, true, strlen(result)) == 0) && (strlen(result) == strlen("yes")))
{
SendClientMessage(playerid, COLOR_SUPER, "Tekstualna poruka dostavljena.");
if (gTeam[playerid] == 2 || gTeam[playerid] == 1)
{
SendClientMessage(playerid, COLOR_BLUE, "SMS: Nemamo pojma o cemu govorite, Posiljalac: MOLE (555)");
RingTone[playerid] = 20;
return 1;
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_BLUE, "SMS: Jednostavno odradicemo to, Posiljalac: MOLE (555)");
RingTone[playerid] = 20;
return 1;
}
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
{
giveplayerid = i;
Mobile[playerid] = giveplayerid;
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
       if(PhoneOnline[giveplayerid] > 0)
       {
           SendClientMessage(playerid, COLOR_BLUE, "   Mobilni pretplatnik nije trenutno dostupan,molimo pokusajte kasnije!");
           return 1;
       }
format(string, sizeof(string), "SMS: %s, Posiljalac: %s (%d)", result,sendername,PlayerInfo[playerid][pPnumber]);
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
RingTone[giveplayerid] =20;
SendClientMessage(playerid, COLOR_SUPER, "Tekstualna poruka dostavljena");
SendClientMessage(giveplayerid, COLOR_BLUE, string);
SendClientMessage(playerid,  COLOR_BLUE, string);
format(string, sizeof(string), "~r~$-%d", txtcost);
GameTextForPlayer(playerid, string, 5000, 1);
SafeGivePlayerMoney(playerid,-txtcost);
SBizzInfo[2][sbTill] += txtcost;
ExtortionSBiz(2, txtcost);
          PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
          Mobile[playerid] = 255;
return 1;
}
}
}
}
}
SendClientMessage(playerid, COLOR_SUPER, "  Poruka nije dostavljena...");
}
return 1;
}

treba ti foreach include i ovo if (IsPlayerAdmin(i) || GetPVarInt(i, "Admin") >= 1)
zamjeni s onim kako ti je u skripti

E to treba mi ajmi reci de sta ide i ispod cega
Evo ti moj /sms

if(strcmp(cmd, "/txt", true) == 0 || strcmp(cmd, "/t", true) == 0 || strcmp(cmd, "/sms", true) == 0)
{
   if(IsPlayerConnected(playerid))
{
   if(gPlayerLogged[playerid] == 0)
       {
           SendClientMessage(playerid, COLOR_BLUE, "   Niste se ulogovali!");
           return 1;
       }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_SUPER, "KORISTI: (/t)ext [phonenumber] [text chat]");
return 1;
}
if(PlayerInfo[playerid][pPnumber] == 0)
{
SendClientMessage(playerid, COLOR_SUPER, "  Nemate mobilni telefon...");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s vadi mobilni telefon.", sendername);
ProxDetector(30.0, playerid, string, COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE,COLOR_BLUE);
new phonenumb = strval(tmp);
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_SUPER, "KORISTI: (/t)ext [phonenumber] [text chat]");
return 1;
}
if(phonenumb == 555)
{
if ((strcmp("yes", result, true, strlen(result)) == 0) && (strlen(result) == strlen("yes")))
{
SendClientMessage(playerid, COLOR_SUPER, "Tekstualna poruka dostavljena.");
if (gTeam[playerid] == 2 || gTeam[playerid] == 1)
{
SendClientMessage(playerid, COLOR_BLUE, "SMS: Nemamo pojma o cemu govorite, Posiljalac: MOLE (555)");
RingTone[playerid] = 20;
return 1;
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_BLUE, "SMS: Jednostavno odradicemo to, Posiljalac: MOLE (555)");
RingTone[playerid] = 20;
return 1;
}
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
{
giveplayerid = i;
Mobile[playerid] = giveplayerid;
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
       if(PhoneOnline[giveplayerid] > 0)
       {
           SendClientMessage(playerid, COLOR_BLUE, "   Mobilni pretplatnik nije trenutno dostupan,molimo pokusajte kasnije!");
           return 1;
       }
format(string, sizeof(string), "SMS: %s, Posiljalac: %s (%d)", result,sendername,PlayerInfo[playerid][pPnumber]);
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
RingTone[giveplayerid] =20;
SendClientMessage(playerid, COLOR_SUPER, "Tekstualna poruka dostavljena");
SendClientMessage(giveplayerid, COLOR_BLUE, string);
SendClientMessage(playerid,  COLOR_BLUE, string);
format(string, sizeof(string), "~r~$-%d", txtcost);
GameTextForPlayer(playerid, string, 5000, 1);
SafeGivePlayerMoney(playerid,-txtcost);
SBizzInfo[2][sbTill] += txtcost;
ExtortionSBiz(2, txtcost);
          PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
          Mobile[playerid] = 255;
return 1;
}
}
}
}
}
SendClientMessage(playerid, COLOR_SUPER, "  Poruka nije dostavljena...");
}
return 1;
}
Poslednja Izmena: Jul 04, 2011, 15:57:24 POSLE PODNE od [TG]$--L84S--$

Citat: [CL]Cooper poslato Jul 04, 2011, 15:50:20 POSLE PODNE
Da adminov odgovor igracu
Evo ti :
if(strcmp(cmd, "/areci", true) == 0 )
{
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_WHITE, "   Nisi ulogiran!");
            return 1;
        }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "KORISTI: /areci [playerid/PartOfName] [text]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
        {
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "KORISTI: /areci [playerid/PartOfName] [text]");
return 1;
}
format(string, sizeof(string), " %s odgovara igracu %s: %s", sendername, giveplayer, (result));
            ABroadCast(COLOR_WHITE,string,1);
format(string, sizeof(string), "Admin %s kaze: %s", sendername, (result));
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "Vas odgovor je poslan!", sendername, (result));
SendClientMessage(playerid,  COLOR_WHITE, string);
return 1;
}
else
{
    SendClientMessage(playerid,  COLOR_WHITE, "    Igrac nije blizu !");
    return 1;
}
}
}
else
{
format(string, sizeof(string), "   %d je offline.", giveplayerid);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
return 1;
}

Mozete li mi napraviti komandu /pomoc u ZCMD-u??????
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

jesam ti ja prije dao jbt?
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Citat: Apokalipsa poslato Jul 04, 2011, 10:28:59 PRE PODNE
Oprostite al bitno mi je .. ima li komanda da se unisti /veh vozila?

Znaci ja sad spawnam vozilo sa /veh i da ima komanda koja ce unistiti to ?



** BUMP **

Citat: Apokalipsa poslato Jul 04, 2011, 20:19:42 POSLE PODNE
Citat: Apokalipsa poslato Jul 04, 2011, 10:28:59 PRE PODNE
Oprostite al bitno mi je .. ima li komanda da se unisti /veh vozila?

Znaci ja sad spawnam vozilo sa /veh i da ima komanda koja ce unistiti to ?



** BUMP **

OVo je iz ravensa preuredi je samo

if(strcmp(cmd, "/adv", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] <= 4)
{
    SendClientMessage(playerid, COLOR_GRAD1, "** You need At Least Level Five To use this Command!");
return 1;
}
if(GetPlayerState(playerid) == 2)
{
    new vehicle = GetPlayerVehicleID(playerid);
new pvehi = GetVehicleModel(vehicle);
if(!IsACreatedCar(vehicle)) return SendClientMessage(playerid, COLOR_GREY, "* You cannot destroy permanent cars!");
if(pvehi == 520)
{
    if(Hydras >= 1)
    {
Hydras --;
PlayerInfo[playerid][pHydra] = 0;
}
}
if(pvehi == 425)
{
    if(Hunters >= 1)
    {
Hunters --;
PlayerInfo[playerid][pHunter] = 0;
}
}
if(pvehi == 432)
{
    if(Rhinos >= 1)
    {
Rhinos --;
PlayerInfo[playerid][pRhino] = 0;
}
}
if(pvehi == 430)
{
    if(Predators >= 1)
    {
Predators --;
PlayerInfo[playerid][pPredat] = 0;
}
}
    SafeRemovePlayerFromVehicle(playerid);
DestroyVehicle(vehicle);
format(string, sizeof(string), "[ADMIN]: %s (%d) Has Destroyed Their Vehicle!", sendername, playerid);
ABroadCast(COLOR_LIGHTRED, string, 5);
SendClientMessage(playerid, COLOR_YELLOW, "** Vehicle Destroyed !");
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Admin Destroyed Their Vehicle",d,m,y,h,mi,s,sendername);
AdminLog(string);
}
}
return 1;
}

//