15.07.2010, 18:25
Quote:
here
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(KEY_FIRE)) { if(IsPlayerInRangeOfPoint(playerid, 4.0, 116.7310,1853.2793,17.7055)) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "you are not in avehicle!"); new vehicleid = GetPlayerVehicleID(playerid); PlayerPlaySound(playerid, 1133, 116.7310,1853.2793,17.7055); RepairVehicle(vehicleid); SendClientMessage(playerid, COLOR_BRIGHTRED, "Your vehicle has been repaired."); } } return 1; } tell me if this works |