[AJUDA] ► GodVeiculo No Evento ◄
#1

Bom tenho um Sistema de Evento mas e Tenho Nele Um Sistema de /GodCar Mas somente Admins Usa o CMD

Queria que o CMD /GodCar Fosse Setado nos Carros Do Evento PAra todos os Players e Quando a Corrida Terminase Voltaria ao Normal

CMD DO GOD VEICULO:


pawn Код:
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;
}
Reply
#2

pawn Код:
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;
}
Reply
#3

Quote:
Originally Posted by leonardo1434
Посмотреть сообщение
pawn Код:
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;
}
Hun To comeзando a inteder mas podia me Explicar mais ?

Obrigado
Reply
#4

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)