SA-MP Forums Archive
Owners - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Owners (/showthread.php?tid=634623)



Owners - Loinal - 22.05.2017

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?


Re: Owners - YouHack - 22.05.2017

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


Re: Owners - Loinal - 22.05.2017

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


Re: Owners - YouHack - 22.05.2017

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


Re: Owners - Loinal - 22.05.2017

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?


Re: Owners - YouHack - 22.05.2017

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



Re: Owners - Loinal - 22.05.2017

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


Re: Owners - YouHack - 22.05.2017

Explain, please


Re: Owners - Loinal - 22.05.2017

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


Re: Owners - YouHack - 22.05.2017

I think this feature isn't available in IRC.