SA-MP Forums Archive
Stay within the world boundaries Do - 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: Stay within the world boundaries Do (/showthread.php?tid=237491)



Stay within the world boundaries Do - y@sin1 - 09.03.2011

Stay within the world boundaries Deatmatch and Spawn Rondom be done how hep wants to

*DeathMatch do give



new Float:RandomSpawns[2][3] = {
{-781.33087158,2097.13061523,75.20702362},
{-651.74212646,2102.49072266,75.13509369}
};
-----------------------------------------------
if(strcmp(cmdtext, "/dm", true) == 0)
{

new rand = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2]);


Re: Stay within the world boundaries Do - Kyle - 09.03.2011

SetPlayerWorldBounds(playerid, -502,1487, -887,5186, 2183,763, 1891,816);


Re: Stay within the world boundaries Do - y@sin1 - 10.03.2011

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
SetPlayerWorldBounds(playerid, -502,1487, -887,5186, 2183,763, 1891,816);
it which publice which borders fled player automatically kıck got to ?