[pomoc]Race CP

Započeo MatijaCH, April 01, 2011, 12:46:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

gm koji uredujem:Cyber edit :P
detaljan opis problema:ovako napravio sam komande za prozvat nekog na utrku (Drag Race) i sad neznam kako napravit da tko prvi dode do cp-a da kaze npr ko na ss gm-u onak npr "ORGANIZATOR:%s je zavrsio utrku"
pokusqavo sam ubacivat al izbaci neke errore
dio skripte:: else if(CP[playerid] == 200) { CP[playerid] = 201; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1575.7826,-2499.6052,13.7816,15.0); } //Finish
else if(CP[playerid] == 201)
{
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
  GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "ORGANIZATOR: %s je zavrsio Drag Race.", name);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
else if(CP[playerid]==1)
{


 if (strcmp(cmd, "/setracer1", true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /setracer1 [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, 2038.3920,-2498.3098,13.5469,10.0);
CP[giveplayerid] = 200;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ORGANIZATOR %s je pozvao %s na startnu liniju broj 1!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Niste autorizovani da bi ste Koristiteli ovu komandu!");
}
}
return 1;
}
   if (strcmp(cmd, "/setracer2", true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /setracer2 [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, 2037.5493,-2490.4072,13.5391,10.0);
CP[giveplayerid] = 300;
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ORGANIZATOR %s je pozvao %s na startnu liniju broj 2!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove naredbe !");
}
}
return 1;
}
Poslednja Izmena: April 01, 2011, 12:46:58 POSLE PODNE od MatijaCH
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !