ForceClassSelection
#1

I'm trying to make an admin command.
When admin type /class [playerid] it will kill the selected player and force him to the class selection....
Can someone help me with the command?

Код:
command(class, playerid, params[])
{
	new ID;
	if(AdminLevel[playerid] == 1337)
	if(sscanf(params, "i", ID))
	{
	    SendClientMessage(playerid, Red, "Usage: /class (playerid)");
	    return 1;
	}
	ForceClassSelection(playerid);
    SetPlayerHealth(playerid,0);
	return 1;
}
Reply


Messages In This Thread
ForceClassSelection - by zxc1 - 13.07.2011, 13:54
Re: ForceClassSelection - by veyron - 13.07.2011, 14:00
Re: ForceClassSelection - by Basicz - 13.07.2011, 14:03
Re: ForceClassSelection - by zxc1 - 13.07.2011, 14:14
Re: ForceClassSelection - by zxc1 - 13.07.2011, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)