[Ajuda] Comandos ...
#3

Quote:
Originally Posted by paulor
View Post
Cores Hexadecimal nгo sгo permitidas em GameText.

pawn Code:
format(Msg, 128, "~p~|Anuncio Admin| %s: %s", Name, Message);
Mano ele quer que apareзa no chat

@jdsfenix: tenta assim o cmd "cv"
pawn Code:
COMMAND:cv(playerid, params[])
{
    new Name[24], Msg[128], Message[128];
    if (APlayerData[playerid][PlayerLevel] > 1)
    {
        GetPlayerName(playerid, Name, sizeof(Name));
        if (APlayerData[playerid][LoggedIn] == true)
        {
            if (sscanf(params, "s[128]", Message)) SendClientMessage(playerid, 0xFF0000AA, "Use: /cv [texto]");
            else
            {
                for (new i; i < MAX_PLAYERS; i++)
                {
                    if (APlayerData[i][LoggedIn] == true)
        {
            if (APlayerData[i][PlayerClass] == APlayerData[playerid][PlayerClass])
                        {
                        format(Msg, 128, "{FF00FF}|Anuncio Admin| %s: {FF00FF}%s", Name, Message);
                        SendClientMessageToAll(-1,Msg);
                        }
                    }
                }
            }
        }
    }
    else
        return 0;
    return 1;
}
Reply


Messages In This Thread
Comandos ... - by jdsfenix - 14.12.2012, 23:49
Re: Comandos ... - by paulor - 14.12.2012, 23:51
Re: Comandos ... - by [Dark]Danny_Uchiha - 15.12.2012, 00:00
Re: Comandos ... - by paulor - 15.12.2012, 00:06
Re: Comandos ... - by EditPawn - 15.12.2012, 00:17
Re: Comandos ... - by jdsfenix - 15.12.2012, 00:41

Forum Jump:


Users browsing this thread: 2 Guest(s)