28.10.2012, 20:21
Hey so i have a problem with this...
The top, the nitrous works but the jump doesnt..
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new veh = GetPlayerVehicleID(playerid); if(newkeys & KEY_FIRE && IsPlayerInAnyVehicle(playerid)) { AddVehicleComponent(veh,1010); return 1; } else { RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010); return 1; } if(newkeys & KEY_CROUCH) { if(JumpSize[playerid] == 0) return 1; if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1; new Float: x, Float: y, Float: z; GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z); SetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z + JumpSize[playerid]); //The same here. return 1; } return 1; }