How to Define a city
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   if(IsPlayerInRangeOfPoint(playerid, 300.0 ,259.3984,-1229.6013,73.7732))//los santos
   {
   SetPlayerPos(playerid,1218.9458,-1811.7068,16.5938);// los santos hospital - i think you can change it lol
   GameTextForPlayer(playerid,"Spawned At Los Santos Hospitals",6000,5);
   }
   return 1;
}
or you can make like this

put this on header your script

pawn Код:
#define Los_Santos   259.3984,-1229.6013,73.7732
#define Nearest_Hospital  1218.9458,-1811.7068,16.5938
then

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   if(IsPlayerInRangeOfPoint(playerid, 300.0 ,Los_Santos))//los santos
   {
   SetPlayerPos(playerid,Nearest_Hospital);// los santos hospital - i think you can change it lol
   }
   return 1;
}
Reply


Messages In This Thread
How to Define a city - by Gabriel1337 - 22.05.2013, 09:55
Re: How to Define a city - by Abhishek. - 22.05.2013, 09:57
Re: How to Define a city - by Gabriel1337 - 22.05.2013, 10:09
Re: How to Define a city - by Guest123 - 22.05.2013, 12:44

Forum Jump:


Users browsing this thread: 3 Guest(s)