23.06.2013, 19:15
You could of done this yourself quite easily...
pawn Code:
ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", ""); // this needs to go in the admin command when you set their level
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(response)
{
case 2818:
{
if(!response) ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", "");
else
{
new
szString[100];
if(isnull(inputtext))
return ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", "");
format(PlayerInfo[playerid][pAdminName], sizeof(pAdminName), "%s", inputtext);
format(szString, sizeof(szString), "You have set your admin name to %s.", PlayerInfo[playerid][pAdminName]);
SendClientMessage(playerid, -1, szString);
}
}
}
return 0;
}