(HELP) aleatory skins - 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) aleatory skins (
/showthread.php?tid=215690)
(HELP) aleatory skins -
Amine_Mejrhirrou - 23.01.2011
hi all i would like you to help me with team skins
i explain : i would like to change a player skin when he turne to zombie !
but not only 1 skin for zombie team i want
aleatory skins (10 SKiNS)
i mean that all the zombies
will not have the same skin but one of th folowing skins
this is the id of the skins that i want to set to the player if they turne to zombies
Skin ID: 132
Skin ID: 158
Skin ID: 159
Skin ID: 162
Skin ID: 200
Skin ID: 230
Skin ID: 212
& when they chage to human team they will have their first skin again
can some one hlp pls
Re: (HELP) aleatory skins -
Stigg - 24.01.2011
Put your 10 Skins into an array.
Peace...
Re: (HELP) aleatory skins -
Kitten - 24.01.2011
pawn Код:
new OmfgZombies = random(7);
switch (OmfgZombies)
{
case 0: SetPlayerSkin(playerid ,132 ) ;
case 1: SetPlayerSkin(playerid , 158) ;
case 2: SetPlayerSkin(playerid , 159) ;
case 3: SetPlayerSkin(playerid , 162) ;
case 4: SetPlayerSkin(playerid , 200) ;
case 5: SetPlayerSkin(playerid , 230) ;
case 6: SetPlayerSkin(playerid , 212) ;
}
NOT TESTED
EDIT: or take a look in my zombie mod gamemode
https://sampforum.blast.hk/showthread.php?tid=192222