[Ajuda] cade?
#3

Tenta:

pawn Код:
CMD:av(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1,"[ERRO] Voce nao e admin ou nao tem level suficiente.");
    new text[128];
    if(sscanf(params, "s",text)) return SendClientMessage(playerid,-1,"[USE] /av [texto]");
    GetPlayerName(playerid,Name,sizeof(Name));
    format(Don,sizeof(Don),"|Admin %s(ID:%d)| %s.",Name,playerid, text);
    SendClientMessageToAll(-1,Don);
    return true;
}
CMD:ao(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1,"[ERRO] Voce nao e admin ou nao tem level suficiente.");
    new text[128];
    if(sscanf(params, "s", text)) return SendClientMessage(playerid,-1,"[USE] /ao [texto]");
    GetPlayerName(playerid,Name,sizeof(Name));
    format(Don,sizeof(Don),"~w~%s:~r~%s.",Name,text);
    GameTextForAll(Don,3000,3);
    return true;
}
CMD:a(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, -1,"[ERRO] Voce nao e admin ou nao tem level suficiente.");
    new text[128];
    if(sscanf(params, "s",text)) return SendClientMessage(playerid,-1,"[USE] /a [texto]");
    GetPlayerName(playerid,Name,sizeof(Name));
    format(Don,sizeof(Don),"|Admin %s (ID:%d)|: %s.",Name,playerid,text);
    for(new i, p = GetMaxPlayers(); i < p; i++)
        if(PlayerInfo[i][pAdmin] > 1 && IsPlayerConnected(i))
            SendClientMessageToAll(-1,Don);
    return true;
}
Corrija isto aqui, pois senгo para cada jogador que for admin 1+ uma mensagem contendo aquilo que foi digitado no comando /a serб enviada para todo o servidor.

pawn Код:
for(new i, p = GetMaxPlayers(); i < p; i++)
        if(PlayerInfo[i][pAdmin] > 1 && IsPlayerConnected(i))
            SendClientMessageToAll(-1,Don);
Reply


Messages In This Thread
[ARRUMADO] - by Don_Speed - 10.07.2012, 00:34
Re: cade? - by Jason` - 10.07.2012, 00:42
Re: cade? - by Shadoww5 - 10.07.2012, 00:42
Re: cade? - by sanalex - 10.07.2012, 00:47
Re: cade? - by paulor - 10.07.2012, 00:48
Re: cade? - by Don_Speed - 10.07.2012, 00:51
Re: cade? - by sanalex - 10.07.2012, 00:53
Re: cade? - by paulor - 10.07.2012, 00:53
Re: cade? - by Don_Speed - 10.07.2012, 00:56
Re: cade? - by Shadoww5 - 10.07.2012, 01:19

Forum Jump:


Users browsing this thread: 1 Guest(s)