Removed player due to error
#6

Код:
dcmd_kick(playerid,params[])
{
	if(pInfo[playerid][pAdmin] >= 1)
	{
		if(sscanf(params, "u", fID)) 
		{
			return SendClientMessage(playerid,RED,"[Hinweis!] /kick [ID]");
		}
		if(!IsPlayerConnected(fID))
		{
			SendClientMessage(playerid, WHITE, "Es ist kein Spieler mit der angegebenen ID online.");
		}
		else
		if(fID == playerid)
		{
				SendClientMessage(playerid, WHITE,"Du kannst dich nicht selber kicken!");
		}
		else
		{
			format(mstring, sizeof(mstring), "Du wurdest von %s gekickt.",pname(playerid));
			SendClientMessage(fID, WHITE, mstring);
			format(mstring, sizeof(mstring), "%s wurde von %s vom Server gekickt.",pname(fID),pname(playerid));
			SendClientMessageToAll(WHITE, mstring);
			Kick(fID);
		}
	}
	else
	{
		SendClientMessage(playerid, RED, "Du hast nicht die benцtigten Rechte!");
	}	
	return 1;
}
Reply


Messages In This Thread
Removed player due to error - by Chuck1892 - 23.07.2012, 11:58
AW: Removed player due to error - by Chuck1892 - 24.07.2012, 08:38
Re: Removed player due to error - by Ronaldo_raul™ - 24.07.2012, 10:14
AW: Removed player due to error - by Chuck1892 - 24.07.2012, 10:22
Re: Removed player due to error - by Ronaldo_raul™ - 24.07.2012, 10:36
AW: Removed player due to error - by Chuck1892 - 24.07.2012, 10:38
Re: Removed player due to error - by Ronaldo_raul™ - 24.07.2012, 11:22
AW: Removed player due to error - by Chuck1892 - 24.07.2012, 11:33

Forum Jump:


Users browsing this thread: 1 Guest(s)