Szerző Téma: Race  (Megtekintve 324 alkalommal)

Nem elérhető Stramm

  • 193
    • Profil megtekintése
Race
« Dátum: 2013. Április 28. - 11:58:18 »
0 Show voters
Sziasztok Nos írtam egy ilyet ami nem  nagy cucc
Viszont ebbe az kellene nekem hogy 30-tól vissza számláljon és csak azután vehesse fel a Cack pointot.
 
#include <a_samp>
#include <zcmd>

 

new Float:Race[][3] = {
{-1664.1274, -172.0345, 14.1484},
{-1495.3821, -2.8962, 14.1484},
{-1277.8391, 217.7289, 14.1484},
{-1070.6162, 421.7166, 14.5469}
};
CMD:join(playerid, params[])
{
SetPlayerRaceCheckpoint(playerid,0,Race[0][0],Race[0][1],Race[0][2],Race[1][0],Race[1][1],Race[1][2],10);
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
new Race_idx = GetPVarInt(playerid, \"Race2\")+1;
SetPVarInt(playerid, \"Race2\", Race_idx);
switch(Race_idx)
{
case 0..1:
SetPlayerRaceCheckpoint(playerid,0,Race[Race_idx][0],Race[Race_idx][1],Race[Race_idx][2],Race[Race_idx+1][0],Race[Race_idx+1][1],Race[Race_idx+1][2],10);
case 2:
SetPlayerRaceCheckpoint(playerid,1,Race[Race_idx][0],Race[Race_idx][1],Race[Race_idx][2],0,0,0,10);
case 3:
{
DisablePlayerRaceCheckpoint(playerid);
DeletePVar(playerid, \"Race2\");
}
}
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal