30.05.2015, 05:29
(
Последний раз редактировалось justice96; 31.05.2015 в 00:39.
)
Quote:
If someone will give a weapon to the driver it will be able again to make DB.
|
I'm really want to get a lots of criticism
Quote:
This is done incorrectly do it like this just always set their armed weapon to 0 if they try it may be a little less efficient but it eliminates any other overhead you might need to implement.
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if( (newkeys & KEY_FIRE) && (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) ) SetPlayerArmedWeapon(playerid,0); } |