[Ajuda] Comando /mega nao Funciona
#4

pawn Код:
if(strcmp(cmd, "/mega", true) == 0 || strcmp(cmd, "/mf", true) == 0)
{
    new string[128];
    if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid,TEAM_CYAN_COLOR,"Vocк nгo pode falar, pois foi calado");
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GRAD1,"Vocк nгo e Um Admin!");
    if(isnull(params)) return SendClientMessage(playerid,TEAM_CYAN_COLOR,"Uso correto: /m [texto]");
    for(new i=0;i<MAX_PLAYERS; i++)
    if(GetDistanceBetweenPlayers(playerid, i) <= 60)
    {

        format(string,sizeof(string),"Megafone de %s: %s",GetPlayerName(playerid),params);
        SendClientMessage(i,AMARELO,string);
    }
    return 1;
}
Testa ai, fiz meio que correndo p te ajudar... Usei GetDistanceBetweenPlayers, acho que й melhro...
Reply


Messages In This Thread
Comando /mega nao Funciona - by LucasFoxY - 27.11.2013, 16:05
Re: Comando /mega nao Funciona - by ScriptGameS - 27.11.2013, 16:20
Re: Comando /mega nao Funciona - by PT - 27.11.2013, 16:36
Re: Comando /mega nao Funciona - by Menor - 27.11.2013, 16:37
Re: Comando /mega nao Funciona - by LucasFoxY - 27.11.2013, 18:42
Re: Comando /mega nao Funciona - by bruxo00 - 27.11.2013, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)