20.11.2011, 06:23
pawn Код:
new pcheck[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
pcheck[playerid] = 1;
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(pcheck[playerid] == 1)
{
GivePlayerMoney(playerid, 1000);
DisablePlayerCheckpoint(playerid);
pcheck[playerid] = 2;
SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
}
else if(pcheck[playerid] == 2)
{
GivePlayerMoney(playerid, 2000);
DisablePlayerCheckpoint(playerid);
pcheck[playerid] = 3;
SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
}
// and so on ...
return 1;
}