Dialog team help please.
#3

what i think you cant show Dialog on Requestclass you can put it under OnPlayerSpawn

pawn Код:
public OnPlayerSpawn(playerid)
{
ShowPlayerDialog(playerid,128,DIALOG_STYLE_LIST,"Teams","Team Balla\nTeam Grove", "Select", "Cancel");
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 128:
{
if(!response) return SendClientMessage(playerid,-1,"You Canceled");
switch(listitem)
{
case 1:
{
gTeam[playerid] == TEAM_BALLA;
SendClientMessage(playerid,-1,"Welcome to Team Balla");
}
case 2:
{
gTeam[playerid] == TEAM_GROVE;
SendClientMessage(playerid,-1,"Welcome to team Grove");
}
}
}
return 1;
}
Reply


Messages In This Thread
Dialog team help please. - by Magic_Time - 29.08.2012, 20:36
Re: Dialog team help please. - by ThePhenix - 29.08.2012, 20:51
Re: Dialog team help please. - by ZBits - 29.08.2012, 20:53

Forum Jump:


Users browsing this thread: 2 Guest(s)