19.02.2011, 13:30
// In this example the player's checkpoint will be set when they spawn.
// On entering the checkpoint they will receive $1000 and the checkpoint will be disabled.
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid,x,y,z,size of the checkpoint [example 3.0]);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid, 1000);
DisablePlayerCheckpoint(playerid);
return 1;
}
If you need that.
// On entering the checkpoint they will receive $1000 and the checkpoint will be disabled.
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid,x,y,z,size of the checkpoint [example 3.0]);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid, 1000);
DisablePlayerCheckpoint(playerid);
return 1;
}
If you need that.