23.06.2010, 06:58
I've got some problems with my code it complies fine but doesn't work.
Its ment to stop the vehicle from installing nitro if its a bike.
But it doesn't even install nitro in the alowed vehicles no why?
Please reply,.
Thanks
Xtreme
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(GetPlayerVehicleID(playerid) != 522) { } else if(IsPlayerInAnyVehicle(playerid)) { if(newkeys & KEY_FIRE) { //Car Jump// if(IsPlayerInAnyVehicle(playerid)) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // Nitro } return 1; } }
But it doesn't even install nitro in the alowed vehicles no why?
Please reply,.
Thanks
Xtreme