[Tutorial] [TUT]Creating a basic Account system_
#5

Hi,

I wanted to know how I would add the admin level to a command, ive tried allsorts.

This is basicly, what I want
Код:
dcmd_kick(playerid, params[])
{
new iD, Message[128];
		new eAccount[MAX_PLAYER_NAME];
		if (sscanf(params, "u", iD)) SendClientMessage(playerid, COLOR_WHITE, "~ Usage: /kick [playerid]");
		else if (iD == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "~ Inactive Player");
		else
		{
			Kick(iD);
			GetPlayerName(playerid, eAccount, MAX_PLAYER_NAME);
			format(Message, sizeof(Message), "~ %s has been kicked from the server.", eAccount);
			SendClientMessageToAll(COLOR_RED, Message);
		}
	}
	return 1;
}
Reply


Messages In This Thread
[TUT]Creating a basic Account system_ - by -Rebel Son- - 15.06.2010, 21:29
Re: [TUT]Creating a basic Account system_ - by DJDhan - 15.06.2010, 21:36
Re: [TUT]Creating a basic Account system_ - by Naxix - 15.06.2010, 21:37
Re: [TUT]Creating a basic Account system_ - by -Rebel Son- - 15.06.2010, 21:38
Re: [TUT]Creating a basic Account system_ - by iRemix - 19.06.2010, 11:12
Re: [TUT]Creating a basic Account system_ - by iRemix - 19.06.2010, 11:14
Re: [TUT]Creating a basic Account system_ - by DJDhan - 19.06.2010, 11:17
Re: [TUT]Creating a basic Account system_ - by ViruZZzZ_ChiLLL - 19.06.2010, 11:18
Re: [TUT]Creating a basic Account system_ - by Flashy - 19.06.2010, 11:21
Re: [TUT]Creating a basic Account system_ - by -Rebel Son- - 12.07.2010, 02:15

Forum Jump:


Users browsing this thread: 1 Guest(s)