SA-MP Forums Archive
Random location + Random skin - 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 location + Random skin (/showthread.php?tid=111672)



Random location + Random skin - Naruto4 - 03.12.2009

You know how to set up random skin + pos at first time he registers.I tried something.. Any other idea,please post here.Thanks
Code:
new Civ[] = {135,136,137,134};

new Float:gRandomPlayerSpawns[5][3] = {
{1958.3783,1343.1572,15.3746},
{2199.6531,1393.3678,10.8203},
{2483.5977,1222.0825,10.8203},
{2637.2712,1129.2743,11.1797},
{1705.2347,1025.6808,10.8203}
};
Code:
new rand = random(sizeof(Civ));
	PlayerInfo[playerid][pModel] = Civ[rand];
	new rand1 = random(sizeof(gRandomPlayerSpawns));
	SetPlayerPos(playerid, gRandomPlayerSpawns[rand1][0], gRandomPlayerSpawns[rand1][1], gRandomPlayerSpawns[rand1][2]);



Re: Random location + Random skin - ExoSanty - 03.12.2009

take a look here:

https://sampwiki.blast.hk/wiki/Random


Re: Random location + Random skin - Naruto4 - 03.12.2009

i saw that,but is my code ok _?? -,- should it work with random skin + pos