[HELP]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: [HELP]Random skin? (
/showthread.php?tid=201842)
[HELP]Random skin? -
Manteiga01 - 22.12.2010
Hi guys, I have a question, I want to do set random skin when a player enters in a determinated checkpoint.
Example: I am at LS, and then i type /changeskin, and there goes a checkpoint in front of the hospital, and when I enter it, my skins changes randomly.
Sorry if I wrote something wrong, I am brazilian!
Re: [HELP]Random skin? -
Jeffry - 22.12.2010
At TOP of your GM:
pawn Код:
new MyRandomSkins[] =
{
0,
3,
12,
55
};
//The last number must not have a ','.
Just add the skins you want.
At OnPlayerEnterCheckpoint:
pawn Код:
SetPlayerSkin(playerid, MyRandomSkins[random(sizeof(MyRandomSkins))]);
Cheers!
PS: Have a Marry Christmas and a Happy new Year!
Re: [HELP]Random skin? -
Manteiga01 - 22.12.2010
Thanks, and happy new year for you too! : )
Re: [HELP]Random skin? -
Jeffry - 22.12.2010
Quote:
Originally Posted by Manteiga01
Thanks, and happy new year for you too! : )
|
No problem. And Thanks.