Owners
#1

PHP код:
CMD:kick(playeridparams[], help)
{
    if(
pData[playerid][Admin] >= 3)
    {
         new 
idreason[50],kick[123],Jstring[100+1000];
         if(
isnull(params)) return SendClientMessage(playeridCOLOR_YELLOW"Usage: /kick <Player ID> <Reason>");
         
sscanf(params"us[50]"idreason);
         if(
IsPlayerConnected(id) && id != playerid)
         {
            if(
pData[playerid][Admin] <= pData[id][Admin]) return SendClientMessage(playeridCOLOR_RED"You can't kick a high admin level");
            if(!
isnull(reason))
            
format(Jstring,sizeof(Jstring),"'%s' has been kicked by administrator %s Reason: %s",GetName(id),GetName(playerid),reason);
            else 
format(Jstring,sizeof(Jstring),"'%s' has been kicked by administrator %s",GetName(id),GetName(playerid));
            
SendClientMessageToAll(red,Jstring);
            
format(Jstring,sizeof(Jstring),"[INGAME KICK] %s has kicked %s | %s ",GetName(playerid),GetName(id),reason);
            
format(kicksizeof(kick), "02 03*** 6,11 Admin %s (ID: %d) has Kicked %s (ID: %d) Reason: %s."GetName(playerid),playerid,GetName(id),id,reason);
            
IRC_GroupSay(groupIDIRC_CHANNELkick);
            return 
SetTimerEx("DelayKick",200,false,"d"id);
         }
         else return 
SendClientMessage(playeridCOLOR_RED"That player is not online");
    }
    else return 
SendClientMessage(playeridCOLOR_RED"Sorry, Only +level 3 can use this command");

Hello, i use this kick command from JLAdmins also it echo at the irc how can i let only owners see this kick echo?
Reply
#2

Make an IRC channel for staff only. then replace this with it:
IRC_GroupSay(groupID, IRC_CHANNEL, kick);
Reply
#3

Quote:
Originally Posted by YouHack
Посмотреть сообщение
Make an IRC channel for staff only. then replace this with it:
IRC_GroupSay(groupID, IRC_CHANNEL, kick);
Already have a channel but also in that channel i need only owners can view this
Reply
#4

You can't do it. but you can have more than 1 channel, set a password for the staff channel.
Reply
#5

Quote:
Originally Posted by YouHack
Посмотреть сообщение
You can't do it. but you can have more than 1 channel, set a password for the staff channel.
How can i set a password for the staff channel?
Reply
#6

There are 3 modes in IRC:
  1. Public ( Current )
  2. Invitation only ( Recommended ):
    Код:
    Use this command to set it in invitation only:
    /mode #mychannel +i
    then you can invite people there using:
    /invite username #mychannel
  3. Password ( Intrusted staff may tell others while you're offline ):
    Код:
    Use this command to make it passworded:
    /mode #channel +k password
    "password" is your desired pass
Reply
#7

Quote:
Originally Posted by YouHack
Посмотреть сообщение
There are 3 modes in IRC:
  1. Public ( Current )
  2. Invitation only ( Recommended ):
    Код:
    Use this command to set it in invitation only:
    /mode #mychannel +i
    then you can invite people there using:
    /invite username #mychannel
  3. Password ( Intrusted staff may tell others while you're offline ):
    Код:
    Use this command to make it passworded:
    /mode #channel +k password
    "password" is your desired pass
Thats good but thats not what i meant
Reply
#8

Explain, please
Reply
#9

Quote:
Originally Posted by YouHack
Посмотреть сообщение
Explain, please
Look i want the /kick echo but to the main channel for the server but only owners can see it
Reply
#10

I think this feature isn't available in IRC.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)