[HELP]Random skin?
#1

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!
Reply
#2

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!
Reply
#3

Thanks, and happy new year for you too! : )
Reply
#4

Quote:
Originally Posted by Manteiga01
Посмотреть сообщение
Thanks, and happy new year for you too! : )
No problem. And Thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)