Setadmin help
#1

The CMD doesnt work for RCON but also does not display error messages
Код:
COMMAND:setadminlevel(playerid, params[])
{
	if(IsPlayerAdmin(playerid)){
 		new targetid, level;
 		if(sscanf(params, "ui", targetid, level)) return SendClientMessage(playerid, -1,"USAGE: /setadmin [ID] [LEVEL]");
 		else pInfo[targetid][Adminlevel] = level;
	}else SendClientMessage(playerid, -1,"ERROR: You are not permitted to use this command.");
	return 1;
}
Reply


Messages In This Thread
Setadmin help - by NicholasA - 13.04.2013, 09:14
Re: Setadmin help - by Isolated - 13.04.2013, 09:16
Re: Setadmin help - by NicholasA - 13.04.2013, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)