SA-MP Forums Archive
Making a 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)
+--- Thread: Making a spawn (/showthread.php?tid=550438)



Making a spawn - MrViolence101 - 12.12.2014

I want to make a spawning system in pawno where if the player connects he or she spawns immediately. I saw when i created a script from scratch they ask you each time to click, i want to spawn people automatically. Can anyone present me with a piece coding to make it happen. Thanks in advance.

I'll rep++


Re: Making a spawn - M4D - 12.12.2014

pawn Код:
public OnPlayerConnect(playerid)
{
 SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
 SpawnPlayer(playerid);
 return 1;
}
i just copied it from wiki ! change spawn info
https://sampwiki.blast.hk/wiki/SetSpawnInfo


Re: Making a spawn - MrViolence101 - 12.12.2014

that explains alot, thanks alot. I have used both that lines just at the wrong callbacks Lol. +Rep for you