03.08.2018, 18:31
solved.
idk if its the correct way but it works with this:
its okay or not?
idk if its the correct way but it works with this:
PHP код:
CMD:places(playerid)
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
ShowPlayerDialog(playerid,200,DIALOG_STYLE_LIST, "Admin Places Menu", "Los Santos \nSan Fierro \nLas Venturas", "Go", "Cancel");
}
else
{
SendClientMessage(playerid, COLOR_CORRECTION, "You are not authorized to use this command !");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 200)
{
if(response)
{
if(listitem == 0)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1539.0920,-1675.8379,13.5469);
SendClientMessage(playerid, COLOR_SUCCESS, " You Have Been Teleported Los Santos" );
}
if(listitem == 1)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -1410.2748,-308.2696,14.1411);
SendClientMessage(playerid, COLOR_SUCCESS, " You Have Been Teleported San Fierro" );
}
if(listitem == 2)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2028.8151,1007.9219,10.8203);
SendClientMessage(playerid, COLOR_SUCCESS, " You Have Been Teleported Las Venturas" );
}
}
}
}