Anti DB as Passanger
#6

Quote:
Originally Posted by Marricio
Посмотреть сообщение
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SPRINT)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(GetPlayerWeapon(playerid) != 29)
            {
                ApplyAnimation(playerid, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);
            }
            else if(GetPlayerWeapon(playerid) == 29)
            {
                return 1;
            }
        }
    }
    return 0;
}
Not tested In Game. No errors in my PC.
I am not sure if this code only allow you to use this weapon or took your weapon, on this case id 29(mp5)
And btw why you don't like that can shoot with all weapons? at irl you can too!
Reply


Messages In This Thread
Anti DB as Passanger - by SanAndreasVille - 23.01.2011, 21:21
Re: Anti DB as Passanger - by Marricio - 23.01.2011, 21:28
Re: Anti DB as Passanger - by SanAndreasVille - 23.01.2011, 21:36
Re: Anti DB as Passanger - by Jefff - 23.01.2011, 21:44
Re: Anti DB as Passanger - by Marricio - 23.01.2011, 21:47
Re: Anti DB as Passanger - by ricardo178 - 23.01.2011, 22:48

Forum Jump:


Users browsing this thread: 2 Guest(s)