15.12.2015, 14:41
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;
}
From what I know there isnt a default function to set more than 3 weapons