Message only showing in Console
#1

When a person is administrator, when they text, it appears like "Administrator John: Hello" and it appears in pink.

BUT, it does not appear at all in the main chat when i type something, nothing appears. The words only appears in the server console.

This is my current code:
pawn Код:
#if ADM_InMSG == true
    if (AccInfo[playerid][Hide] == 0)
    {
    if(AccInfo[playerid][Level] > 0)
    {
    new str3[256];
    format(str3, 256, "Administrator %s", text);
    for(new gz=0;gz<200;gz++)
    if(IsPlayerConnected(gz))
    SendPlayerMessageToPlayer(gz, playerid, str3);
    else SendPlayerMessageToPlayer(gz, playerid, text);
    }
    return 0;
    }
    #endif
Reply
#2

Anyone?
Reply
#3

What is it you're trying to achieve? A message that is being sent to all players?
Reply
#4

pawn Код:
#if ADM_InMSG == true
    if (AccInfo[playerid][Hide] == 0 && AccInfo[playerid][Level] > 0)
    {
        new str3[256], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, MAX_PLAYER_NAME);
        format(str3, 256, "Administrator %s: %s", name, text);
        SendClientMessageToAll(0xFF66FFAA, str3);
    }
    return 0;
}
#endif
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)