Makeadmin need help
#1

Код:
CMD:makeadmin(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 7) 
	{
		new id, string[128], level; 
		if(sscanf(params, "dd", id, level)) return SendClientMessage(playerid, COLOR_RED, "SERVER: /makeadmin [ID] [LEVEL]"); 
		format(string, sizeof(string), "You promoted to %d admin level.", level); 
		SendClientMessage(id, COLOR_BLUE, string); 
		PlayerInfo[id][pAdmin] = level; 
	}
	else return SendClientMessage(playerid, COLOR_BLUE, "You don't have acces to that command."); 
	return 1;
}
I know how to make this but i want if i set someone admin level to show him some dialog..
Reply
#2

What kind of dialog do you want?
Reply
#3

Hello!

Well, where is the problem? Do you know how you create this dialog?
Do you need any help to create this dialog?

- Mencent
Reply
#4

MSGBOX
Reply
#5

what dialog?
Reply
#6

PHP код:
ShowPlayerDialog(id,DIALOG_ADMINBOX,DIALOG_STYLE_MSGBOX,"Title","Text","Button1","Button"); 
Here is an example. If you need help, you can ask.

- Mencent
Reply
#7

https://sampwiki.blast.hk/wiki/ShowPlayerDialog

So it would be something like

ShowPlayerDialog(id, 2000, DIALOG_STYLE_MSGBOX, "Notification", "You have been made an admin", "Okay", "");
Reply
#8

Quote:
Originally Posted by Gazzy
Посмотреть сообщение
What kind of dialog do you want?
Ops i doesn't see replay i will try it now
Reply
#9

yes guys i know all of that but if i put that in cmd and i make him admin that same dialog show to me.
Reply
#10

Can you send us your code?

- Mencent
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)