OnplayerKeyStateChane - Change
#1

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);
        }
    }
With this the objects attack ti the vehicle by pressing H how i can set by pressing "2" ?
Reply
#2

pawn Код:
if((newkeys & KEY_SUBMISSION) && !(oldkeys & KEY_SUBMISSION))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)