Spawning - 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: Spawning (
/showthread.php?tid=249981)
Spawning -
IvancheBG - 21.04.2011
When i connect to my server i spawn in lv but i want in other place.How to do that?
Re: Spawning -
elite - 21.04.2011
Код:
SetPlayerPos(playerid, poshere);
Re: Spawning -
Davz*|*Criss - 21.04.2011
If you want like this then it is here.
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, x, y ,z);//Instead of x y z post your coordinates.
return 1;
}
And if you want the player spawns at random places.
Then it is also here.
On Top:-
pawn Код:
new Float:Spawns[3][4] =
{
{//Your coordinates here},
{//Your coordinates here},
{//Your coordinates here}
};
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, Spawns[rand][0], Spawns[rand][1], Spawns[rand][2], Spawns[rand][3]);
return 1;
}
Thanks
Re: Spawning -
Cjgogo - 21.04.2011
you can set your own spawn points
Re: Spawning -
Markx - 21.04.2011
Seriously, take a look on wiki SA-MP before you post something!