15.07.2010, 16:22
Apparently vehicle id is not defined aswell as newkeys
public update(playerid)
public update(playerid)
Код:
{ if(IsPlayerInRangeOfPoint(playerid, 4.0, 116.7310,1853.2793,17.7055)) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "you are not in a vehicle!"); { if (HOLDING( KEY_FIRE )) new vehicleid = GetPlayerVehicleID(playerid); PlayerPlaySound(playerid, 1133, 116.7310,1853.2793,17.7055); SetVehicleHealth(vehicleid, 1000.0); RepairVehicle(vehicleid); SendClientMessage(playerid, COLOR_BRIGHTRED, "Your vehicle has been repaired."); } } return 1; }