How to make message to all *public chat*
#2

pawn Код:
if(text[0] == '@' && AccountInfo[playerid][aLevel] > 0)
{
    new string[256], name[60], message[350];
    GetPlayerName(playerid, name, 60);
    strmid(string, text, 1, strlen(text), 256);
    format(message, 350, "%s: %s", name, string);
    for(new i;i<MAX_PLAYERS;i++)
    {
        if(AccountInfo[i][aLevel] > 0)
        {
            SendClientMessage(i,0xFF0000FF, message);
        }
    }
    return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)