SA-MP Forums Archive
Skin At Spawn problem - 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: Skin At Spawn problem (/showthread.php?tid=174055)



Skin At Spawn problem - [Ask]Terminator - 04.09.2010

I have a gamemode with 3-4k line wich i use this at onplayerspawn

SetPlayerSkin(playerid, Skins[random(sizeof(Skins))]);

and this at the top

new Skins[] = { 15,7,21,28,50,60,72,79,95,98,100,101,102,103,104,1 05,108,109,110,111,116,117,118,122,124,128,133,176 ,177,221,247,248,258,259,262,250 };

I have also one PlayerClass at ongamemodeint

AddPlayerClass(0, 0,0,0, 0, 0, 0, 0, 0, 0, 0);

When i start the gamemode everything fine and anyone gets a random skin ect.. but after 20 minute or less that gammemode is running anyone who spawn get CJ skin (skin id 0)

Can anyone tell me why this happens and how to fix?

thankssss