16.11.2012, 16:23
Quote:
Edited
pawn Код:
|
pawn Код:
// Topo
#define DIALOG_EVENTOZOMBIE 10 // Caso jб acha uma dialog com esse ID, mude para outro
// Comando
CMD:criareventozombie(playerid)
{
for(new l = 0; l <MAX_PLAYERS; l++)
{
if(IsPlayerConnected(l))
{
ShowPlayerDialogid(l, DIALOG_EVENTOZOMBIE, DIALOG_STYLE_LIST, "Escolha seu time", "Humano \nZombie", "Selecionar", "Cancelar");
}
}
ShowPlayerDialogid(playerid, DIALOG_EVENTOZOMBIE, DIALOG_STYLE_LIST, "Escolha seu time", "Humano \nZombie", "Selecionar", "Cancelar");
return 1;
}
// Public OnPlayerDialogResponse
if(dialogid == DIALOG_EVENTOZOMBIE)
{
if(response)
{
if(listitem == 0)
{
// Funзгo ao escolher a ser Humano
}
if(listitem == 1)
{
// Funзгo ao escolher a ser Zombie
}
}
}