Quote:
Originally Posted by newbienoob
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new veh = GetPlayerVehicleID(playerid); //get player's vehicle id if(newkeys & KEY_SUBMISSION && IsPlayerInAnyVehicle(playerid)) // if they have pressed "2" and if they are inside of any vehicle {//then RemoveVehicleComponent(veh,1010); //remove the nitro return 1; } if(newkeys & KEY_FIRE && IsPlayerInAnyVehicle(playerid)) // if they have pressed left mouse button and if they are inside of any vehicle { AddVehicleComponent(veh,1010); //add a nitro return 1; } return 1; }
|
Dude, thanks alot +Rep to you and gtakillerIV.
P.S: You teached me a lot about scripting just with that script so yet again thanks newbienoob ++Rep