Help with acronyms scripting
#4

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    if(text[0] == '#' && AdminLevel[i] >= 1)
    {
        if(IsSpawned[playerid] == 0)
        {
            SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
            return 0;
        }
        format(string,sizeof(string),"4[ADMIN CHAT] %s(%d): %s",PlayerName(playerid),playerid,params);
        IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(AdminLevel[i] >= 1)
            {
                format(string,sizeof(string),"[ADMIN CHAT] %s(%d): %s",PlayerName(playerid),playerid,params);
                SendClientMessage(i,COLOR_ADMIN,string);
                return 0;
            }
        }
    }
    return 0;
}
Reply


Messages In This Thread
Help with acronyms scripting - by cleanboy - 03.06.2014, 11:55
Re: Help with acronyms scripting - by cleanboy - 03.06.2014, 12:12
Re: Help with acronyms scripting - by Parallex - 03.06.2014, 12:19
Re: Help with acronyms scripting - by SyntaxQ - 03.06.2014, 12:21
Re: Help with acronyms scripting - by Threshold - 03.06.2014, 12:22
Re: Help with acronyms scripting - by Rittik - 03.06.2014, 12:23
Re: Help with acronyms scripting - by cleanboy - 03.06.2014, 12:24
Re: Help with acronyms scripting - by Threshold - 03.06.2014, 12:54
Re: Help with acronyms scripting - by Threshold - 03.06.2014, 22:17

Forum Jump:


Users browsing this thread: 2 Guest(s)