31.10.2008, 16:56
Might want to add
Towards the top of onplayerkeystatechange so that anyone using NOS etc don't get penalized for "shooting"
I used GetPlayerState instead of IsPlayerInAnyVehicle because if you don't specify which seat position you could have drive-bys. The driver can still DB of course, so it might be worth removing weapons when a player enters the car.
Just some suggestions. Otherwise its a great idea.
Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return 1;
I used GetPlayerState instead of IsPlayerInAnyVehicle because if you don't specify which seat position you could have drive-bys. The driver can still DB of course, so it might be worth removing weapons when a player enters the car.
Just some suggestions. Otherwise its a great idea.