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


Messages In This Thread
Owners - by Loinal - 22.05.2017, 20:11
Re: Owners - by YouHack - 22.05.2017, 20:34
Re: Owners - by Loinal - 22.05.2017, 20:42
Re: Owners - by YouHack - 22.05.2017, 20:53
Re: Owners - by Loinal - 22.05.2017, 20:54
Re: Owners - by YouHack - 22.05.2017, 21:06
Re: Owners - by Loinal - 22.05.2017, 21:10
Re: Owners - by YouHack - 22.05.2017, 21:16
Re: Owners - by Loinal - 22.05.2017, 21:19
Re: Owners - by YouHack - 22.05.2017, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)