An admin chat? ґ+REPP
#7

I'd recommend to make an admin chat with quick strings. Suche as

Код:
#Hello, what's up?
!What's going on?
@Heya
Here's a code for this. Post this script below OnPlayerText

pawn Код:
if(text[0] == '#') // You can change the character example to '!' or '@'
{
    new string[128], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    strdel(text, 0, 1);
    format(string, sizeof(string), "[ADMIN CHAT] %s [%d]: %s", pName, playerid, text);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerData[i][ALevel] > 0) // Player is connected and he's an admin
        {
            SendClientMessage(i, -1, string);
        }
    }
}
Reply


Messages In This Thread
An admin chat? ґ+REPP - by Lynet - 12.11.2013, 13:42
Re: An admin chat? ґ+REPP - by dominik523 - 12.11.2013, 13:51
Re: An admin chat? ґ+REPP - by Loot - 12.11.2013, 13:51
Re: An admin chat? ґ+REPP - by Lynet - 12.11.2013, 14:02
Re: An admin chat? ґ+REPP - by newbie scripter - 12.11.2013, 14:11
Re: An admin chat? ґ+REPP - by Loot - 12.11.2013, 14:16
AW: An admin chat? ґ+REPP - by Skimmer - 12.11.2013, 14:18
Re: An admin chat? ґ+REPP - by iFiras - 12.11.2013, 14:28
Re: An admin chat? ґ+REPP - by Lynet - 12.11.2013, 14:32
Re: An admin chat? ґ+REPP - by Ghazal - 12.11.2013, 14:33

Forum Jump:


Users browsing this thread: 3 Guest(s)