SA-MP Forums Archive
Message only showing in Console - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Message only showing in Console (/showthread.php?tid=425115)



Message only showing in Console - Eminem 2ka9 - 24.03.2013

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



Re: Message only showing in Console - Eminem 2ka9 - 24.03.2013

Anyone?


Re: Message only showing in Console - reckst4r - 24.03.2013

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


Re: Message only showing in Console - kamzaf - 24.03.2013

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