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!