CMD:godcar(playerid, params[]) {
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "Voce Nao и Admininistrador(a)");
else {
SendClientMessage(playerid, GREEN, "GOD Veiculo LIGADO");
CarGod[GetPlayerVehicleID(playerid)] = true;
}
return 1;
}
CMD:godcaroff(playerid, params[]) {
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "Voce Nao и Admininistrador(a)");
else {
SendClientMessage(playerid, RED, "GOD Veiculo DESLIGADO");
CarGod[GetPlayerVehicleID(playerid)] = false;
}
return 1;
}
public OnVehicleDamageStatusUpdate(vehicleid, playerid) {
if(CarGod[vehicleid]) RepairVehicle(vehicleid);
return 1;
}
new bloquear[MAX_PLAYERS];
// LEMBRE-SE ADICIONAR ISSO NO COMANDO >>> bloquear = 1;
CMD:godcar(playerid, params[])
{
if(bloquear) == 1);
SendClientMessage(playerid, GREEN, "GOD Veiculo LIGADO");
SetVehicleHealth(vehicleid, 999999);
new Float:health;
GetVehicleHealth(playerid, health);
if(health < 999) return RepairVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}
CMD:godcaroff(playerid, params[])
{
SendClientMessage(playerid, RED, "GOD Veiculo DESLIGADO");
SetVehicleHealth(vehicleid, 1000.0);
return 1;
}
pawn Код:
|
new bloquear[MAX_PLAYERS]; // Topo do GameMode
// DE PREFERENCIA BOTE NO FINAL DO GAMEMODE
// LEMBRE-SE ADICIONAR ISSO NO COMANDO >>> bloquear = 1;
CMD:godcar(playerid, params[])
{
if(bloquear) == 1);
SendClientMessage(playerid, GREEN, "GOD Veiculo LIGADO");
SetVehicleHealth(vehicleid, 999999);
new Float:health;
GetVehicleHealth(playerid, health);
if(health < 999) return RepairVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}
CMD:godcaroff(playerid, params[])
{
SendClientMessage(playerid, RED, "GOD Veiculo DESLIGADO");
SetVehicleHealth(vehicleid, 1000.0);
return 1;
}