(Pomoc)Drift Race

Započeo Ante_Street, Februar 07, 2011, 22:59:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Evo ovako ja upisem /setdrift id,i pojavi mi se cp i iskljuci se kad uÄ'em na njega i onda nista,sada nekontam zasto nece da dalje ucita cp-ove,koristim LARP,a ovo sam uzeo iz gf.
Evo codovi:
else if(CP[playerid] == 42) { CP[playerid] = 43; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2421.9204,-608.6248,132.0441,20.0); }
else if(CP[playerid] == 43) { CP[playerid] = 44; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2496.9990,-478.8155,94.7177,20.0); }
else if(CP[playerid] == 44) { CP[playerid] = 45; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2623.2935,-480.6886,68.7591,20.0); }
else if(CP[playerid] == 45) { CP[playerid] = 46; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2325.6685,-458.3109,79.5035,20.0); }
else if(CP[playerid] == 46) { CP[playerid] = 47; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2498.0532,-365.3347,61.7247,20.0); }
else if(CP[playerid] == 47) { CP[playerid] = 48; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2667.7502,-497.6405,19.9153,20.0); }
else if(CP[playerid] == 48) { CP[playerid] = 49; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2773.3596,-497.2868,6.6680,20.0); }
else if(CP[playerid] == 49) { CP[playerid] = 50; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2810.1260,-215.4224,6.5126,20.0); }
else if(CP[playerid] == 50) { CP[playerid] = 51; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2800.7371,-70.6346,6.5123,20.0); }
else if(CP[playerid] == 51) { CP[playerid] = 52; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2499.2361,-70.3260,25.0858,20.0); }
else if(CP[playerid] == 52) { CP[playerid] = 53; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2188.2166,-69.7538,34.6532,20.0); }
else if(CP[playerid] == 53) { CP[playerid] = 54; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2007.2333,-16.5090,34.2726,20.0); }
else if(CP[playerid] == 54) { CP[playerid] = 55; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1825.7214,605.7892,34.4969,20.0); }
else if(CP[playerid] == 55) { CP[playerid] = 56; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1703.0498,730.8510,24.2149,20.0); }
else if(CP[playerid] == 56) { CP[playerid] = 57; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1559.1902,743.7248,6.5194,20.0); }
else if(CP[playerid] == 57) { CP[playerid] = 58; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1558.8545,921.4796,6.5204,20.0); }
else if(CP[playerid] == 58) { CP[playerid] = 59; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1602.8101,1110.7477,6.5204,20.0); }
else if(CP[playerid] == 59) { CP[playerid] = 60; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1696.8942,1280.3389,6.5204,20.0); }
else if(CP[playerid] == 60) { CP[playerid] = 61; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2001.4613,1287.7046,6.5204,20.0); }
   else if(CP[playerid] == 61) { CP[playerid] = 62; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2223.9883,1331.3994,6.5197,20.0); }
   else if(CP[playerid] == 62) { CP[playerid] = 63; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -2503.7007,1376.7408,6.5241,20.0); }
else if(CP[playerid] == 63)
{
CP[playerid] = 0;
       DisablePlayerCheckpoint(playerid);
       SendClientMessage(playerid, COLOR_LIGHTRED, "Prosao si kroz drift cilj. ");
}


//--------------------------------------------drift race-----------------
  if (strcmp(cmd, "/setdrift", true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTITE: /setdrift [IgracevID/DioImena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGhelper] == 1)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, -2506.0701,-614.8732,132.5254,20.0); // PRVI CHECKPOINT NA RACE
CP[giveplayerid] = 42; // OVO JE ONAJ PRVI BROJ KOD CP-A
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "DRIFT ORGANIZATOR %s je pozvao %s na Drift Race!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove komande !");
}
}
return 1;
}
Poslednja Izmena: Februar 07, 2011, 22:59:36 POSLE PODNE od Ante_Street
Trazim "Profesionalnog Skriptera" da mi napravi jednu stvar,cijena nebitna nek mi se javi na pm....trazim lika koji zna raditi ne nekog pocetnika