18.01.2012, 19:11
Код:
FixCar(playerid) { if(IsPlayerInAnyVehicle(playerid) == 1) { if(GetPlayerState(playerid) == 2) { SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0); SendClientMessage(playerid,COLOR_GREEN,"Car fixed!"); } else { SendClientMessage(playerid,COLOR_YELLOW,"You need to be the driver to fix your car"); } } else { SendClientMessage(playerid,COLOR_YELLOW,"You need to be in a vehicle to fix it!"); } }