SA-MP Forums Archive
Random Spawner - 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: Random Spawner (/showthread.php?tid=270047)



Random Spawner - MeNMyselv - 18.07.2011

Hey Guyz,
i need a script that when you choose a character that the server chooses a spawn location randomly in Los Santos.
Does anyone know how to make this script.
i will add the coцrdinates myself.

For more information what i want just say it and i give it.

Srry if bad English but im Dutch
THNX for interest and maybe for helping


Re : Random Spawner - edouardu44 - 18.07.2011

PHP:


public OnPlayerSpawn(playerid)
switch(random(4))
{
case 0:
{
SetPlayerPos(playerid,0,0,0);
}
case 1:
{
SetPlayerPos(playerid,0,0,0);
}
case 2:
{
SetPlayerPos(playerid,0,0,0);
}
case 3:
{
SetPlayerPos(playerid,0,0,0);
}
}

Good luck


Re: Random Spawner - MeNMyselv - 19.07.2011

@edouardu44
thnx it works