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 Skin (
/showthread.php?tid=188354)
Random Skin -
x-file - 07.11.2010
Hey. Who can Help me?
I want when player register in my server, they get random skin.
Sorry, my english poor
Re: Random Skin -
ExeC - 07.11.2010
Hello, i think i got the solution.
First add:
pawn Код:
new RandomSkin[9] = {
0,
67,
114,
56,
87,
285,
86,
34,
75,
};
at the top of your script.
Then add:
pawn Код:
new randomskin = random(sizeof(randomskin));
SetPlayerSkin(playerid,RandomSkin[randomskin]);
under "OnPlayerSpawn".
Hope this help's you.
Re: Random Skin -
x-file - 07.11.2010
Thank You
Re: Random Skin -
ExeC - 07.11.2010
Quote:
Originally Posted by x-file
Thank You
|
No problem