Rcon Only Chat
#2

Use this
pawn Код:
forward MessageToOwner(color,const string[]);
public MessageToOwner(color,const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) == 1)
        if(PlayerInfo[i][Level] >= 7){
        SendClientMessage(i, color, string); }
    }
    return 1;
}
CMD:o(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 7) {
        new string[128]; format(string, sizeof(string), "[OWNER] %s: %s", PlayerName2(playerid), params[0] );
        MessageToOwner(green,string);
    } else return SendClientMessage(playerid,red,"ERROR: You need to be owner to use this command");
    return 1;
}
Reply


Messages In This Thread
Rcon Only Chat - by Tass007 - 01.07.2012, 08:51
Re: Rcon Only Chat - by Ironboy - 01.07.2012, 09:06
Re: Rcon Only Chat - by Tass007 - 06.08.2012, 08:40

Forum Jump:


Users browsing this thread: 1 Guest(s)