10.07.2010, 01:18
At The Top:
Using ZCMD
OnDialogResponse
pawn Код:
#define TeleD 9500
pawn Код:
CMD:teles( playerid,params[] )
{
ShowPlayerDialog( playerid, TeleD,DIALOG_STYLE_LIST,"Teleports", "Los Santos\nSan Fierro\nLas Venturas\netcetcetc","Select","Close");
return 1;
}
pawn Код:
if(dialogid == TeleD && response == 1)
{
if(listitem == 0) SetPlayerPos(playerid,blablabla)
if(listitem == 1) Set....);
if(listitem == 2) Set....);
if(listitem == 3) Set....);
}
else
{
SendClientmessage(playerid,red,"You Closed The Tele Menu");
}