[Ajuda] Bloquear Nitro em tal comando.
#1

exemplo quero que ninguem use o nitro ou qualquer tecla pra acionar mod cleo ou etc.. nessas corrida!!

variavel nitro

pawn Код:
forward AddNitro(playerid);
public AddNitro(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
        {
            case 448,461,462,463,468,471,509,510,521,522,523,581,586,449: return;
        }
        AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
    }
}

comando /race

pawn Код:
CMD:race(playerid, params[])
{

        if(getCheckpointType(playerid)!=TT_START)
        {
            Msg(playerid,Vermelho,"{FFFFFF}Vocк deve estar no local de partida.");
            return 1;
        }
        if(!IsAnElegy(GetPlayerVehicleID(playerid)))
        {
            Msg(playerid, Vermelho, "Vocк deve ter um Elegy {FFFFFF}Para Iniciar essa Corrida.");
            return 1;
        }
        else
        {
            PutPlayerInVehicle(playerid, 562, 0);
            new pname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
            format(String, sizeof(String), "{3cff00}%s {FFFFFF}Boa Sorte!!! Comeзando...", pname);
            Msg(playerid, -1, String);
            Msg(playerid, Cinza, "Para cancelar o Record Drift Digite: /Crace");
            SetCameraBehindPlayer(playerid);
            new Rand = random(1000);
            SetPlayerVirtualWorld(playerid, Rand);
            SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), Rand);
            TogglePlayerControllable(playerid,0);
            Motocountdown[playerid] = 6;
            SetPlayerRaceCheckpoint(playerid,0,racecheckpoints[0][0],racecheckpoints[0][1],racecheckpoints[0][2],racecheckpoints[1][0],racecheckpoints[1][1],racecheckpoints[1][2],10);
            DisablePlayerCheckpoint(playerid);
            SetVehiclePos(GetPlayerVehicleID(playerid),-302.7141,1509.6632,75.0188);
            SetVehicleZAngle(GetPlayerVehicleID(playerid), 182.8436);
        }
        return 1;
}
obs: O PLAYER NГO PODE USAR NITRO ESTANDO NA CORRIDA...
Reply


Messages In This Thread
Bloquear Nitro em tal comando. - by best95 - 22.08.2016, 17:36
Re: Bloquear Nitro em tal comando. - by F1N4L - 22.08.2016, 17:39
Re: Bloquear Nitro em tal comando. - by best95 - 22.08.2016, 17:44
Re: Bloquear Nitro em tal comando. - by F1N4L - 22.08.2016, 17:51
Re: Bloquear Nitro em tal comando. - by best95 - 22.08.2016, 18:13
Re: Bloquear Nitro em tal comando. - by Whoo - 22.08.2016, 19:34
Re: Bloquear Nitro em tal comando. - by best95 - 25.08.2016, 22:14
Re: Bloquear Nitro em tal comando. - by best95 - 25.08.2016, 22:36

Forum Jump:


Users browsing this thread: 1 Guest(s)