Admin Chat
#8

pawn Код:
//In OnPlayerCommandText
    if(!strcmp(cmdtext,"/c",true))
    {
        if(Spieler[playerid][AdminLevel] <2)return SendClientMessage(playerid,COLOR_GREY,"You're cannot use this command");
        GetPlayerName(playerid,string,24);
        if(!cmdtext[3])return SendClientMessage(playerid,COLOR_GREY,"Use: /c [Text]");
        format(string,sizeof(string), "Server - AdminChat [%d] %s: %s",playerid, string, cmdtext[3]);
        print(string);
        for(new player;player<MAX_PLAYERS;player++)
        {
            if(!IsPlayerConnected(player))continue;
            if(Spieler[playerid][AdminLevel] <2)continue;
            PlayerPlaySound(player,1057 ,0,0,0);
            SendClientMessage(player,COLOR_LIGHTGREEN,string);
        }
        return 1;
    }
Reply


Messages In This Thread
Admin Chat - by ]B4E[kengston - 05.01.2011, 23:22
Re: Admin Chat - by Kaylux - 05.01.2011, 23:24
AW: Admin Chat - by ]B4E[kengston - 05.01.2011, 23:26
Re: Admin Chat - by John_F - 05.01.2011, 23:31
Re: Admin Chat - by Kaylux - 05.01.2011, 23:32
AW: Admin Chat - by ]B4E[kengston - 05.01.2011, 23:35
Re: Admin Chat - by iggy1 - 06.01.2011, 06:44
Re: Admin Chat - by Joe Staff - 06.01.2011, 07:16

Forum Jump:


Users browsing this thread: 4 Guest(s)