setting spawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: setting spawn (
/showthread.php?tid=109769)
setting spawn -
cssbart - 22.11.2009
how do you set spawn on map so when you login and do not have a house you spawn there and if you have a house you spawn at your house
Re: setting spawn -
Retardedwolf - 22.11.2009
Just a example.
pawn Код:
public OnPlayerLogin/Spawn(playerid);
{
if(HasAHouse(playerid) == 1)
SetPlayerPos(playerid, doorx,doory,doorz);
}
}
else if(HasAHouse(playerid) == 0)
SetPlayerPos,(playerid, [randSpawn][0], [randSpawn][1], [randSpawn][2]
}
return 1;
}
Note: Copying and Pasting this script will not work, even though the script might be wrong I'm just giving a example.(I Suck in PAWNO)