06.06.2013, 15:14
pawn Код:
CMD:ban(playerid,params[])
{
new id,reason[30];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You are not Admin");
if(sscanf(params, "us[30]", id,reason)) return SendClientMessage(playerid, -1, "USAGE: /ban [id] [reason]");
PlayerInfo[id][GuVipBanned] = 1;
new str[128];
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(str,sizeof(str),"You have been banned by %s [%d] Reason: %s", name, playerid, reason);
SendClientMessage(id, -1, str);
Kick(id);
return 1;
}