checkpoint confusion, please help.
#2

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;
}
Reply


Messages In This Thread
checkpoint confusion, please help. - by jtweak - 20.11.2011, 06:14
Re: checkpoint confusion, please help. - by antonio112 - 20.11.2011, 06:23
Re: checkpoint confusion, please help. - by jtweak - 20.11.2011, 06:25
Re: checkpoint confusion, please help. - by aRoach - 20.11.2011, 06:29
Re: checkpoint confusion, please help. - by jtweak - 20.11.2011, 06:31
Re: checkpoint confusion, please help. - by aRoach - 20.11.2011, 06:36
Re: checkpoint confusion, please help. - by antonio112 - 20.11.2011, 06:42
Re: checkpoint confusion, please help. - by aRoach - 20.11.2011, 06:44
Re: checkpoint confusion, please help. - by jtweak - 20.11.2011, 06:47
Re: checkpoint confusion, please help. - by aRoach - 20.11.2011, 06:53

Forum Jump:


Users browsing this thread: 1 Guest(s)