checkpoint
#4

// 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.
Reply


Messages In This Thread
checkpoint - by omer5198 - 12.02.2011, 09:53
Re: checkpoint - by Unknown123 - 12.02.2011, 09:58
Re : checkpoint - by [WTF]Godfather - 19.02.2011, 11:39
Re: checkpoint - by Adnan Pasic - 19.02.2011, 13:30
Re: checkpoint - by Adnan Pasic - 19.02.2011, 13:34

Forum Jump:


Users browsing this thread: 1 Guest(s)