Command Problem.
#4

um, try this.

Код HTML:
	new
	    PID,
	    adminlevel
	;
	
	if(sscanf(params, "ud", PID, adminlevel)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setadmin [playerid] [admin-level]");
	
	if(!IsPlayerConnected(PID)) return SendClientMessage(playerid, COLOR_WHITE, "Player is not connected");
	
	PlayerInfo[PID][pAdmin] = adminlevel;
	
	new
		name[MAX_PLAYER_NAME],
		string[24 + MAX_PLAYER_NAME]
	;
	
	GetPlayerName(PID, name, MAX_PLAYER_NAME);
	
	format(string, sizeof(string), "[ADMIN]: You have set %s's admin level to %d.", name, adminlevel);
	SendClientMessage(playerid, COLOR_SERVER, string);
Reply


Messages In This Thread
Command Problem. - by MyUndiesSmell - 29.03.2017, 03:04
Re: Command Problem. - by Banditul18 - 29.03.2017, 03:34
Re: Command Problem. - by MyUndiesSmell - 29.03.2017, 03:38
Re: Command Problem. - by Feynman - 29.03.2017, 07:31
Re: Command Problem. - by Juvanii - 29.03.2017, 09:44
Re: Command Problem. - by Banditul18 - 29.03.2017, 10:38

Forum Jump:


Users browsing this thread: 2 Guest(s)