SA-MP Forums Archive
[AJUDA] ► GodVeiculo No Evento ◄ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] ► GodVeiculo No Evento ◄ (/showthread.php?tid=347219)



[AJUDA] ► GodVeiculo No Evento ◄ - Maklister - 01.06.2012

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



Re: [AJUDA] ► GodVeiculo No Evento ◄ - leonardo1434 - 01.06.2012

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



Re: [AJUDA] ► GodVeiculo No Evento ◄ - Maklister - 01.06.2012

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



Re: [AJUDA] ► GodVeiculo No Evento ◄ - ViictorDaay- - 01.06.2012

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