Command error
#9

Since you're using rcon;
PHP код:
CMD:ban(playeridparams[])
{
    new 
idreason[50], string[128], banned[MAX_PLAYER_NAME];
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You Are not Rcon admin Or admin lvl 3+");
    if(
sscanf(params"uz"idreason)) return SendClientMessage(playerid, -1"USAGE: /ban [playerid] [reason(optional)]");
    
GetPlayerName(idbannedsizeof(banned));
    
format(stringsizeof(string), "AdmCmd: %s has been banned by %s. reason: %s"bannedGetName(playerid), reason);
    
SendClientMessageToAll(redstring);
    
BanEx(idreason);
    return 
1;

Reply


Messages In This Thread
Command error - by Dejan12345 - 03.08.2016, 16:51
Re: Command error - by Luicy. - 03.08.2016, 16:53
Re: Command error - by Dejan12345 - 03.08.2016, 16:53
Re: Command error - by SyS - 03.08.2016, 16:54
Re: Command error - by Luicy. - 03.08.2016, 16:55
Re: Command error - by Dejan12345 - 03.08.2016, 16:56
Re: Command error - by Luicy. - 03.08.2016, 16:57
Re: Command error - by Dejan12345 - 03.08.2016, 16:58
Re: Command error - by Luicy. - 03.08.2016, 16:59
Re: Command error - by K0P - 03.08.2016, 17:01

Forum Jump:


Users browsing this thread: 2 Guest(s)