Quote:
Originally Posted by Lido
pawn Код:
Public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(PRESSED(KEY_YES)) { return cmd_vinteract(playerid, ""); } if(GetPlayerState(playerid) == 2 || GetPlayerState(playerid) == 3) { if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1) { if(PRESSED(KEY_SPRINT)) { new vehid; vehid = GetPlayerVehicleID(playerid); if(vengineon[playerid] == 0) { return cmd_eon(playerid, ""); } } if(PRESSED(KEY_SUBMISSION)) { // } } } if(PRESSED(128)) { // } return 1; }
Not tested - but should work
|
Like a charm, repped you both. Thanks for the help.
Edit: What do you mean ******? All parameters are checked in the actual command, all the button is doing is performing the command's function.