19.10.2011, 14:28
Olб .. Mano tenta ae ver ser fufa ..
ponhe esse comando aqui em public OnPlayerCommandText
e esse em public OnDialogResponse
ponhe esse comando aqui em public OnPlayerCommandText
Code:
if (strcmp(cmd, "/kitserver", true) == 0)
{
ShowPlayerDialog(playerid,9999999,DIALOG_STYLE_LIST,"Sistema de Kits","Kit Mendingo\nKit Pobre\nKit Normal\nKit Medio\nKit Bronze","Selecionar","Cancelar");
return 1;
}
Code:
if(dialogid == 9999999)
{
if(listitem == 0)
{
OnPlayerCommandText(playerid,"/kitmendingo");
return 1;
}
else if(listitem == 1)
{
OnPlayerCommandText(playerid,"/kitpobre");
return 1;
}
else if(listitem == 2)
{
OnPlayerCommandText(playerid,"/kitnormal");
return 1;
}
else if(listitem == 3)
{
OnPlayerCommandText(playerid,"/kitmedio");
return 1;
}
else if(listitem == 4)
{
OnPlayerCommandText(playerid,"/kitbronze");
return 1;
}
return 1;
}

