Drive-By System
#7

Quote:
Originally Posted by XO
Посмотреть сообщение
My bad i read it wrong, try
pawn Код:
if(newstate==PLAYER_STATE_PASSENGER)
                    {
                    new gun,tmpaa;
                    GetPlayerWeaponData(playerid,4,gun,tmpaa);
                    #pragma unused tmpaa
                    if(gun != 28 || gun != 29 || gun != 32 || gun != 31) SetPlayerArmedWeapon(playerid,0);
                    else SetPlayerArmedWeapon(playerid,gun);
                }
Will keep uzi ,, etc else it will disarm him.
it still make the player able to use any weapon. Here is the whole Code ,i may did something wrong
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
      {
            new weapons[13][2];
            for (new i = 0; i < 13; i++)
            {
                GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
            }
            SetPlayerArmedWeapon(playerid, 0);
            if(newstate==PLAYER_STATE_PASSENGER)
                    {
                    new gun,tmpaa;
                    GetPlayerWeaponData(playerid,4,gun,tmpaa);
                    #pragma unused tmpaa
                    if(gun != 28 || gun != 29 || gun != 32 || gun != 31) SetPlayerArmedWeapon(playerid,0);
                    else SetPlayerArmedWeapon(playerid,gun);
                }
                return 1;
      }
Reply


Messages In This Thread
Drive-By System - by Drago987 - 19.02.2014, 17:47
Re: Drive-By System - by xo - 19.02.2014, 17:48
Re: Drive-By System - by Bingo - 19.02.2014, 17:52
Re: Drive-By System - by Drago987 - 19.02.2014, 18:10
Re: Drive-By System - by Bingo - 19.02.2014, 18:15
Re: Drive-By System - by xo - 19.02.2014, 18:30
Re: Drive-By System - by Drago987 - 19.02.2014, 18:57
Re: Drive-By System - by xo - 19.02.2014, 19:02
Re: Drive-By System - by Drago987 - 19.02.2014, 19:23
Re: Drive-By System - by Scenario - 19.02.2014, 19:49

Forum Jump:


Users browsing this thread: 3 Guest(s)