[SOLVED]Makeadmin need help -
Deny1 - 23.07.2015
Код:
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..
Re: Makeadmin need help -
Gazzy - 23.07.2015
What kind of dialog do you want?
AW: Makeadmin need help -
Mencent - 23.07.2015
Hello!
Well, where is the problem? Do you know how you create this dialog?
Do you need any help to create this dialog?
- Mencent
Re: Makeadmin need help -
Deny1 - 23.07.2015
MSGBOX
Re: AW: Makeadmin need help -
Deny1 - 23.07.2015
what dialog?
AW: Makeadmin need help -
Mencent - 23.07.2015
PHP код:
ShowPlayerDialog(id,DIALOG_ADMINBOX,DIALOG_STYLE_MSGBOX,"Title","Text","Button1","Button");
Here is an example. If you need help, you can ask.
- Mencent
Re: Makeadmin need help -
Gazzy - 23.07.2015
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", "");
Re: Makeadmin need help -
Deny1 - 23.07.2015
Quote:
Originally Posted by Gazzy
What kind of dialog do you want?
|
Ops i doesn't see replay i will try it now
Re: Makeadmin need help -
Deny1 - 23.07.2015
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.
AW: Makeadmin need help -
Mencent - 23.07.2015
Can you send us your code?
- Mencent