change nick command
#10

Код:
dcmd_changename(playerid, params[])
{
#pragma unused params
if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000AA,"You are not authorized to use that!");
{
if (!IsPlayerConnected(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "Player not found");
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Change your nickname","You can enter here a new nickname:","Accept","Nevermind");
}
}
return 1;
}
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 2 && response)
	{
		SetPlayerName(playerid,inputtext);
	}
  return 1;
}
Im pretty sure it works. Not tested.
Reply


Messages In This Thread
change nick command - by teamicecold - 14.05.2010, 13:51
Re: change nick command - by Assyria - 14.05.2010, 15:18
Re: change nick command - by teamicecold - 14.05.2010, 15:29
Re: change nick command - by teamicecold - 14.05.2010, 18:10
Re: change nick command - by Drowzz - 14.05.2010, 18:50
Re: change nick command - by juice.j - 14.05.2010, 19:01
Re: change nick command - by Drowzz - 14.05.2010, 19:52
Re: change nick command - by juice.j - 14.05.2010, 20:00
Re: change nick command - by Drowzz - 14.05.2010, 20:18
Re: change nick command - by Assyria - 14.05.2010, 22:25

Forum Jump:


Users browsing this thread: 2 Guest(s)