08.09.2013, 11:21
pawn Код:
new bool:CarGodMode[MAX_PLAYERS];
CMD:cargod(playerid)
{
if(CarGodMode[playerid]) CarGodMode[playerid] = false;
else CarGodMode[playerid] = true;
return 1;
}
public OnPlayerUpdate(playerid)
{
if(CarGodMode[playerid])
{
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
}
}
return 1;
}