28.06.2011, 22:15
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == InfoGat)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, InfoGat+1, DIALOG_STYLE_MSGBOX, "[ COMANDOS GAT ]","Comandos GAT [Level 1] (Recruta): /dpgat, /gat, /apgat, /fpgat, /su\r\nComandos GAT [Level 2] (Soldado): /ofc, /prender, /abordar, /revistar, /desabordar\r\nComandos GAT [Level 3] (Capitгo): /ir, /trazer", "Ok", "Sair");
return 1;
}
}
return 1;
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, -1605.4955,712.0432,13.8672))
{
ShowPlayerDialog(playerid, InfoGat, DIALOG_STYLE_LIST, "Informaзхes do GAT", "Ver Meus Comandos", "Selecionar", "Sair");
return 1;
}
}
return 1;
}