Buildings
#5

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


Messages In This Thread
Buildings - by Tony1337 - 15.04.2010, 19:53
Re: Buildings - by russo666 - 15.04.2010, 19:55
Re: Buildings - by Noredine - 15.04.2010, 20:00
Re: Buildings - by Tony1337 - 15.04.2010, 20:12
Re: Buildings - by Noredine - 15.04.2010, 20:36
Re: Buildings - by Tony1337 - 15.04.2010, 23:17
Re: Buildings - by Thrarod - 15.04.2010, 23:41
Re: Buildings - by Tony1337 - 15.04.2010, 23:52
Re: Buildings - by Noredine - 16.04.2010, 00:24
Re: Buildings - by Steven82 - 16.04.2010, 02:57

Forum Jump:


Users browsing this thread: 1 Guest(s)