SA-MP Forums Archive
[HELP] Terrorist Random Skin +1Rep - 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)
+--- Thread: [HELP] Terrorist Random Skin +1Rep (/showthread.php?tid=582337)



[HELP] Terrorist Random Skin +1Rep - jamesmith12 - 19.07.2015

Hello guys , Sorry I'm newbie here at pawno I have two teams Army and Terrorist
I Want To Spawn Terrorist with Random skin but how??

and this is the Terrorist Code

{"Terrorist", 0XFF353596 , 285} // TEAM NAME , COLOR , SKIN

HOW to make it random?? thank you +1Reputation


Re: [HELP] Terrorist Random Skin +1Rep - jamesmith12 - 19.07.2015




Re: [HELP] Terrorist Random Skin +1Rep - Glenn332 - 19.07.2015

What skin ids do you want?


Re: [HELP] Terrorist Random Skin +1Rep - jamesmith12 - 19.07.2015

24 39 29 125


Re: [HELP] Terrorist Random Skin +1Rep - jamesmith12 - 19.07.2015

or any skin bro I can change that later thank you!! 4 skin


Re: [HELP] Terrorist Random Skin +1Rep - jamesmith12 - 19.07.2015

ї??


Re: [HELP] Terrorist Random Skin +1Rep - Glenn332 - 19.07.2015

PHP код:
new value random(4);
switch(
value)
    {
        case 
0:
        {
            
SetPlayerSkin(playerid112);
            return 
1;
        }
           case 
1:
        {
            
SetPlayerSkin(playerid112);
            return 
1;
        }
        case 
2:
        {
            
SetPlayerSkin(playerid112);
            return 
1;
        }
        case 
3:
        {
            
SetPlayerSkin(playerid112);
            return 
1;
        }

You dont have to put in return 1;


Re: [HELP] Terrorist Random Skin +1Rep - jamesmith12 - 19.07.2015

where I'm gonna put that code ? gonna add on terrorist skin code above?


Re: [HELP] Terrorist Random Skin +1Rep - jamesmith12 - 19.07.2015

hmm?


Re: [HELP] Terrorist Random Skin +1Rep - Glenn332 - 20.07.2015

OnPlayerSpawn

Check if player is in terrorist team and then put this underneath it