change nick command
#9

God Deam im not comming out? What to put @ ID?
PLEASE make it for me?
Please?

This code i now have:

Код:
dcmd_changename(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 20)
{
return 1;
}
if (strlen(params))
{
id = strval(params);
if (IsPlayerConnected(id))
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Change your nickname","You can enter here a new nickname:","Accept","Nevermind");
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Player not found");
}
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/changename <playerid>\"");
}
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2 && response)
{
SetPlayerName(playerid,inputtext)
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: 1 Guest(s)