07.07.2011, 19:21
pawn Код:
new bool:GodActived[MAX_PLAYERS] = 0;
pawn Код:
if(strcmp(cmd, "/godcarro", true) == 0)
{
if(GodActived[playerid] == 1)
{
SetTimer("ArrumarVeiculo", 1000, true);
}
else if(GodActived[playerid] == 0)
{
new carro = GetPlayerVehicleID(playerid);
SetVehicleHealth(carro, 1000.0);
return 1;
}
return 0x1;
}
pawn Код:
forward ArrumarVeiculo()
public ArrumarVeiculo()
{
new carro = GetPlayerVehicleID(playerid);
SetVehicleHealth(carro, 1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}