15.04.2010, 20:36
Quote:
|
Originally Posted by Tony1337
Alright, can you give me a example?
|
pawn Code:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid,X,Y,Z);
printf("Player %i is now at the building checkpoint!",playerid);
if (IsPlayerInCheckpoint(playerid))
{
SetPlayerPos(playerid,X,Y,Z);
}
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
printf("Player %i have left a building checkpoint!",playerid);
return 1;
}

