11.08.2011, 23:03
pawn Код:
if(strcmp("/abrirdialog", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, ".:: ID do Player ::.","Insira o ID do Player:","Inserir","Cancelar");
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
new id, Float:pX, Float:pY, Float:pZ;
id = strval(tmp);
tmp = strtok(cmdtext, idx);
GetPlayerPos(id, pX, pY, pZ);
SetPlayerPos(playerid, pX, pY, pZ+1.0);
}
return 1;
}