10.01.2012, 11:50
pawn Код:
forward OnPlayerKeyStateChange(playerid, newkeys, oldkeys);public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
if((newkeys & KEY_CROUCH) && !(oldkeys & KEY_CROUCH))
{
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
return cmd_lights(playerid);
}
}