AddPlayerClass question
#5

PHP код:
stock GiveWeaponBySkin(playerid) {
    switch(
GetPlayerSkin(playerid)) {
        case 
0: { //if skin ID 0
            
GivePlayerWeapon(playerid,24,100);
            
SendClientMessage(playerid,COLOR_RED,"You are skin ID: 0 and you got a deagle!");
        }
        case 
1: { //if skin ID 1
            
GivePlayerWeapon(playerid,31,100);
            
SendClientMessage(playerid,COLOR_RED,"You are skin ID: 1 and you got a M4!");
        }
        
//etc. etc. etc.
    
}
    return 
true;

And then OnPlayerSpawn you can add GiveWeaponBySkin.

From what I know there isnt a default function to set more than 3 weapons
Reply


Messages In This Thread
AddPlayerClass question - by Markhoss - 15.12.2015, 12:15
Re: AddPlayerClass question - by Markhoss - 15.12.2015, 14:19
Re: AddPlayerClass question - by CrazyChoco - 15.12.2015, 14:20
Re: AddPlayerClass question - by Markhoss - 15.12.2015, 14:22
Re: AddPlayerClass question - by TwinkiDaBoss - 15.12.2015, 14:41
Re: AddPlayerClass question - by Markhoss - 15.12.2015, 14:43
Re: AddPlayerClass question - by CrazyChoco - 15.12.2015, 15:00
Re: AddPlayerClass question - by Markhoss - 15.12.2015, 15:01
Re: AddPlayerClass question - by Markhoss - 15.12.2015, 15:03
Re: AddPlayerClass question - by Compiler - 22.12.2015, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)