ZCMD /ban command
#4

PHP код:
CMD:ban(playeridparams[])
{
    new 
idreason[50], string[128], banned[MAX_PLAYER_NAME];
    if(
PlayerInfo[playerid][pAdminLevel] < || !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;

here if you need help next time search
Reply


Messages In This Thread
ZCMD /ban command - by samtey - 14.08.2011, 17:35
Re: ZCMD /ban command - by doreto - 14.08.2011, 17:38
Re: ZCMD /ban command - by Michael@Belgium - 14.08.2011, 17:39
Re: ZCMD /ban command - by doreto - 14.08.2011, 17:43
AW: ZCMD /ban command - by samtey - 14.08.2011, 17:47
Re: ZCMD /ban command - by PhoenixB - 14.08.2011, 17:48
Re: ZCMD /ban command - by doreto - 14.08.2011, 17:49
Re: ZCMD /ban command - by Darnell - 14.08.2011, 17:53
Re: ZCMD /ban command - by PhoenixB - 16.08.2011, 16:26
Re: ZCMD /ban command - by Shockey HD - 16.08.2011, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)