pawn Код:
#define DIALOG_CHANGENICK 0
CMD:changenick(playerid,params[])
{
ShowPlayerDialog(playerid, DIALOG_CHANGENICK, DIALOG_STYLE_INPUT,"Change Nick","Please enter below your nick !","Select","Exit");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_CHANGENICK)
{
if(response)
{
if(!strlen(inputtext))
{
SetPlayerName(playerid, inputtext);
SendClientMessage(playerid, -1, "{FF0000}Succes: {15FF00}You have succesfully changed your name !");
}
}
}
return 1;
}
I never learned Y_Ini, so you can change:
pawn Код:
CMD:changenick(playerid,params[])
To Y_INI command starter:
pawn Код:
Y:INI:changenick(playerid,params[]) // I don't know :D
I made him in Dialogs, and it's very simple, you can optimize him.
P.S: Works fine. If don't work, some of your filescripts it's blocking him .