[Help needed] Adding several weapons not abled under a command.
#2

PHP код:
stock IsABigWeapon(playerid)
{
    switch(
GetPlayerWeapon(playerid))
    {
        case 
30,31,24,23,29: return 1;
    }
    return 
0;

The put a restriction on /putgun1 like

PHP код:
if(!IsABigWeapon)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"You can't put this weapon.");
                return 
1;
            } 
Then you do same for the small ones, with different id's of course.

PS: I'm not sure about the shawnoff id (23)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)