21.09.2015, 14:53
Код:
CMD:vehgod(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid)) { GameTextForPlayer(playerid, "~b~~h~~h~~h~Vehicle Godmode Enabled", 5000, 3); SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0); SetTimerEx("VehGodmode", 500, true, "i", playerid); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); return 1; } SendClientMessage(playerid, -1, "ERROR: You must be in a vehicle to repair."); return 1; } forward VehGodmode(playerid); public VehGodmode(playerid); { if(IsPlayerInAnyVehicle(playerid)) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0); } SendClientMessage(playerid, -1, "ERROR: You must be in a vehicle to repair."); return 1; }