03.06.2012, 18:44
So i have made a dialog which makes you be able to choose your tag you speak with in a certain channel.. But im having trouble doing it
Pretty much how could i make it so when you choose a option on the dialog it changes so when you speak in /newb the tag you choose come up
Please Help
I have this in my Player enum
This is on dialog response
So pretty much im trying to get it so what you choose in the dialog will appear as your tag in /newb please help me
Help Is Appreciated
Pretty much how could i make it so when you choose a option on the dialog it changes so when you speak in /newb the tag you choose come up
Please Help
I have this in my Player enum
pawn Код:
NewbTag
pawn Код:
command(newbie, playerid, params[])
{
new
string[128];
if(isnull(params))
{
SendClientMessage(playerid, WHITE, "SYNTAX: /n(ewbie) [message]");
}
else
{
if(Player[playerid][PlayingHours] < 1)
{
format(string, sizeof(string), "[Newbie]%s %s says: %s", NewbTag, GetNameNoUnderScore(playerid), params);
SendClientMessageToAll(PURPLE, string);
}
}
}
pawn Код:
command(setntag, playerid, params)
{
if(Player[playerid][Mapper] == 1 && Player[playerid][PlayingHours] >= 1 && Player[playerid][PlayingHours] < 25)
{
ShowPlayerDialog(playerid, 980, DIALOG_STYLE_LIST, "Choose Your NTag", "Mapper\nPlayer", "Ok", "Close");
}
}
pawn Код:
case 980:
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, WHITE, "You tag has changed to mapper"):
Player[playerid][NewbTag] = mapper;
}
}
Help Is Appreciated