[Ajuda] ajuda aki por favor preciso muito
#5

IGp acho que nгo foi isso que ele pediu mas sim isto:

pawn Код:
if(strcmp(cmd, "/dm", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        new tmp[4];
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USO: /dm [id]");
        if(IsPlayerConnected(tmp))
        {
            if(tmp != INVALID_PLAYER_ID)
            {
                format(string, sizeof(string), "ATENЗГO: %s[%d] ACUSOU %s[%d] DE ESTAR A FAZER DM, /TV %d RБPIDO!", PlayerName(playerid),playerid,PlayerName(tmp),tmp,playerid);
                if(PlayerInfo[playerid][pVIP] < 1)
                {
                    ABroadCast(COLOR_YELLOW,string,1);
                    SendClientMessage(playerid, COLOR_YELLOW, "O seu aviso de DeathMatch foi enviado para os administradores online!");
                }
                else if(PlayerInfo[playerid][pVIP] == 1)
                {
                    ABroadCast(COLOR_PM,string,1);
                    SendClientMessage(playerid, COLOR_PM, "O seu aviso de DeathMatch foi enviado para os administradores online!");
                }
                else if(PlayerInfo[playerid][pVIP] == 2)
                {
                    ABroadCast(COLOR_ROSA,string,1);
                    SendClientMessage(playerid, COLOR_ROSA, "O seu aviso de DeathMatch foi enviado para os administradores online!");
                }
            }
            else
            {
                SendClientMessage(playerid,COLOR_GRAD1,"Nгo hб ninguйm perto de vocк!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid,COLOR_GRAD1,"Nгo hб ninguйm perto de vocк!");
            return 1;
        }
    }
    return 1;
}
Fiz aqui rбpido nгo tenho a certeza se tem algum erro se tiver me avisa!
Reply


Messages In This Thread
ajuda aki por favor preciso muito - by Farley - 05.02.2014, 14:59
Re: ajuda aki por favor preciso muito - by FrostyWolf - 05.02.2014, 15:07
Re: ajuda aki por favor preciso muito - by Farley - 05.02.2014, 15:10
Re: ajuda aki por favor preciso muito - by IGp - 05.02.2014, 15:26
Re: ajuda aki por favor preciso muito - by brunox - 05.02.2014, 15:43
Re: ajuda aki por favor preciso muito - by Farley - 05.02.2014, 17:02
Re: ajuda aki por favor preciso muito - by brunox - 05.02.2014, 17:13
Re: ajuda aki por favor preciso muito - by Farley - 05.02.2014, 17:29
Re: ajuda aki por favor preciso muito - by Bruno13 - 05.02.2014, 17:42
Re: ajuda aki por favor preciso muito - by brunox - 06.02.2014, 14:53

Forum Jump:


Users browsing this thread: 3 Guest(s)