29.09.2013, 16:43
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_TEAM)
{
if(response)
{
gPlayerTeam[playerid] = listitem; // Set team ID
TogglePlayerSpectating(playerid, 0); // Quit spectating -> Will send the player back to the class selection
}
}
}
return 1;
}