BAN Command
#6

Quote:
Originally Posted by Luicy.
Посмотреть сообщение
PHP код:
// Open a command ofc
CMD:ban(playeridparams[]) { // Notice the "params[]", they're needed.
   
if(IsPlayerAdmin(playerid)) { // check if player is rcon
      
new targetid// empty int
      
if(sscanf(params"i"targetid)) { // check if the input was like /ban 0
          
Ban(playerid); // ban him using the samp func
      
}
      else
            
SendClientMessage(playerid, -1"SYNTAX: /ban playerid");
   }
   return 
1;

are you an idiot? why would you ban the "playerid" instead of the targetid,lol.

Do what the others said and try and understand by yourself and if you get any problems,check back here,List Of Bans Commands.
Reply


Messages In This Thread
BAN Command - by SeanDenZYR - 10.12.2016, 13:05
Re: BAN Command - by SyS - 10.12.2016, 13:33
Re: BAN Command - by saffierr - 10.12.2016, 14:07
Re: BAN Command - by silverms - 10.12.2016, 18:03
Re: BAN Command - by Luicy. - 11.12.2016, 12:22
Re: BAN Command - by ISmokezU - 11.12.2016, 12:43
Re: BAN Command - by BiosMarcel - 11.12.2016, 12:58
Re: BAN Command - by ISmokezU - 11.12.2016, 13:25
Re: BAN Command - by BiosMarcel - 11.12.2016, 13:31
Re: BAN Command - by DJefferson - 09.03.2018, 20:30

Forum Jump:


Users browsing this thread: 2 Guest(s)