help with /unban [name] plz
#3

no this doesn't work :/

here is the code:
Код:
dcmd_banacc(playerid,params[])
{
  if(PlayerData[playerid][Level] >= 1)
	{
	new grund[128],opfer;
	if(sscanf(params,"uz",opfer,grund)) return SendClientMessage(playerid, COLOR_SYSTEM, "Usage: /ban [playerid] [reason]");
	if (!IsPlayerConnected(opfer)) return SendClientMessage(playerid, COLOR_SYSTEM, "Invalid ID!");
	new pname[MAX_PLAYER_NAME], oname[MAX_PLAYER_NAME],string[128];
	GetPlayerName(playerid,pname,sizeof(pname)); GetPlayerName(opfer,oname,sizeof(oname));
	format(string,sizeof(string),"[Server] %s has been namebanned by Admin %s [Reason: %s]",oname,pname,grund);
	SendClientMessageToAll(COLOR_RED,string);
	PlayerData[opfer][Banned] = 1;
	Kick(opfer);
	return 1;
	}
	else return SendClientMessage(playerid,COLOR_RED,"Admins only!");
}
for this code i need a /unban [name] command
Reply


Messages In This Thread
help with /unban [name] plz - by Flo_White - 25.02.2009, 18:08
Re: help with /unban [name] plz - by radhakr - 25.02.2009, 18:54
Re: help with /unban [name] plz - by Flo_White - 25.02.2009, 20:36
Re: help with /unban [name] plz - by Flo_White - 26.02.2009, 13:32
Re: help with /unban [name] plz - by MenaceX^ - 26.02.2009, 13:58
Re: help with /unban [name] plz - by Flo_White - 26.02.2009, 14:27
Re: help with /unban [name] plz - by Flo_White - 27.02.2009, 11:38
Re: help with /unban [name] plz - by Outbreak - 20.04.2009, 01:09
Re: help with /unban [name] plz - by Flo_White - 20.04.2009, 15:14
Re: help with /unban [name] plz - by Jakku - 20.04.2009, 15:48

Forum Jump:


Users browsing this thread: 3 Guest(s)