[AJUDA] Public sу funciona com ID 0
#9

Creio que nгo olha sу o CMD de iniciar o evento.
pawn Код:
//Topo
new derbyevento;
new derbyiniciado[MAX_PLAYERS];
new entrouderby[MAX_PLAYERS];  
//Iniciar Derby
if(strcmp(cmd, "/iniciarderby", true) == 0)
    {
            if (PlayerInfo[playerid][pAdmin] < 4)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo tem permiзгo para ultilizar este comando!");
                return 1;
                }
                for(new i=0; i<MAX_PLAYERS; i++)
                {
                if(IsPlayerConnected(i))
                {
                if(carroderby[i] == 0)
                {
                SendClientMessage(playerid, COLOR_GREY,"Nгo hб carros criados, crie os veнculos para poder iniciar o evento!");
                return 1;
                }
                if(derbyiniciado[i] == 0)
                {
                SendClientMessage(playerid, COLOR_GREY,"O evento de Derby nгo estб aberto.");
                return 1;
                }
                if(entrouderby[i] == 1)
                {
                Derby();
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "Notнcias do Evento: O Admin %s iniciou o evento de Derby e o evento foi trancado!",sendername);
                SendClientMessageToAll(TEAM_CYAN_COLOR, string);
                return 1;
                }
            return 1;
            }
        return 1;
        }
    return 1;
    }
//Entrar Derby
    if(strcmp(cmd, "/entrarderby", true) == 0)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
        if(IsPlayerConnected(i))
        {
            if(!PlayerToPoint(2,playerid,1412.078979,-1700.173583,13.539500))
            {
            SendClientMessage(playerid, COLOR_GREY,"Vocк nгo estб na empresa de eventos!");
            return 1;
            }
                if(derbyiniciado[i] == 0)
                {
                SendClientMessage(playerid, COLOR_GREY,"Nenhum Administrador criou um evento de Derby!");
                return 1;
                }
                derbyevento++;
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "Notнcias do Evento: %s entrou no evento de Derby, e hб poucas vagas, corra jб para a empresa! ",sendername);
                SendClientMessageToAll(TEAM_CYAN_COLOR, string);
                if(derbyevento == 48) PutPlayerInVehicle(playerid, derby1, 0);
                if(derbyevento == 47) PutPlayerInVehicle(playerid, derby2, 0);
                TogglePlayerControllable(playerid, 0);
                entrouderby[playerid] = 1;
                return 1;
                }
                return 1;
                }
                return 1;
                }
Reply


Messages In This Thread
[AJUDA] Public sу funciona com ID 0 - by diretor7 - 30.06.2011, 20:58
Re: [Dъvida] Public sу funciona com ID 0 - by TheGarfield - 30.06.2011, 21:05
Re: [Dъvida] Public sу funciona com ID 0 - by diretor7 - 30.06.2011, 21:07
Re: [Dъvida] Public sу funciona com ID 0 - by TheGarfield - 30.06.2011, 21:11
Re: [Dъvida] Public sу funciona com ID 0 - by diretor7 - 30.06.2011, 21:17
Re: [Dъvida] Public sу funciona com ID 0 - by SuB_ZeRo0_ - 30.06.2011, 22:18
Re: [Dъvida] Public sу funciona com ID 0 - by RockFire - 30.06.2011, 22:27
Re: [Dъvida] Public sу funciona com ID 0 - by TheGarfield - 30.06.2011, 22:29
Re: [Dъvida] Public sу funciona com ID 0 - by diretor7 - 01.07.2011, 01:16
Re: [Dъvida] Public sу funciona com ID 0 - by RockFire - 01.07.2011, 16:21

Forum Jump:


Users browsing this thread: 3 Guest(s)