22.06.2010, 11:58
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(KEY_SUBMISSION)) { new Float:x, Float:y, Float:z; new vehicle=GetPlayerVehicleID(playerid); //forgot somehing here Niixie :) if(IsPlayerInAnyVehicle(playerid)) { GetVehicleVelocity(vehicle,x,y,z); SetVehicleVelocity(vehicle,x,y,z+0.001); } else { GetPlayerVelocity(playerid, x, y, z); SetPlayerVelocity(playerid, x, y, z + 0.001); } } return 1; }