29.12.2011, 11:17
pawn Код:
if(vmcheckpoints[playerid][0] == 1)
{
DestroyDynamicRaceCP(checkpointid);
SetPlayerCheckpoint(playerid,-2019.8148,-145.6181,35.3203, 6);
CreateDynamicRaceCP(0,-2019.8148,-145.6181,35.3203,-2021.3827,-137.9689,35.3015, 3, 0, 0, playerid, 200.0);//1
vmcheckpoints[playerid][0] = 0;
vmcheckpoints[playerid][1] = 1;
GameTextForPlayer(playerid, "(1/31)", 3000, 3);
return 1;
}
if(vmcheckpoints[playerid][1] == 1)
{
DestroyDynamicRaceCP(checkpointid);
SetPlayerCheckpoint(playerid,-2021.3827,-137.9689,35.3015, 6);
CreateDynamicRaceCP(0,-2021.3827,-137.9689,35.3015,-2022.2931,-172.4966,35.3203, 3, 0, 0, playerid, 200.0);//1
vmcheckpoints[playerid][1] = 0;
vmcheckpoints[playerid][2] = 1;
GameTextForPlayer(playerid, "(2/31)", 3000, 3);
return 1;
}
if(vmcheckpoints[playerid][2] == 1)
{
DestroyDynamicRaceCP(checkpointid);
SetPlayerCheckpoint(playerid,-2022.2931,-172.4966,35.3203, 6);
CreateDynamicRaceCP(0,-2022.2931,-172.4966,35.3203,-2015.1947,-166.8497,35.3203, 3, 0, 0, playerid, 200.0);//1
vmcheckpoints[playerid][2] = 0;
vmcheckpoints[playerid][3] = 1;
GameTextForPlayer(playerid, "(3/31)", 3000, 3);
return 1;
}