/places
#8

solved.

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(playeridCOLOR_CORRECTION"You are not authorized to use this command !");
       }
       return 
1;
    }
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 200)
    {
          if(
response)
          {
            if(
listitem == 0)
            {
               
SetPlayerInterior(playerid0);
               
SetPlayerPos(playerid1539.0920,-1675.8379,13.5469);
               
SendClientMessage(playeridCOLOR_SUCCESS" You Have Been Teleported Los Santos" );
            }
            if(
listitem == 1)
            {
               
SetPlayerInterior(playerid0);
               
SetPlayerPos(playerid, -1410.2748,-308.2696,14.1411);
               
SendClientMessage(playeridCOLOR_SUCCESS" You Have Been Teleported San Fierro" );
            }
            if(
listitem == 2)
            {
               
SetPlayerInterior(playerid0);
               
SetPlayerPos(playerid2028.8151,1007.9219,10.8203);
               
SendClientMessage(playeridCOLOR_SUCCESS" You Have Been Teleported Las Venturas" );
            }
        }
    }

its okay or not?
Reply


Messages In This Thread
/places - by Jaua10 - 03.08.2018, 09:10
Re: /places - by Florin48 - 03.08.2018, 09:32
Re: /places - by GRiMMREAPER - 03.08.2018, 09:36
Re: /places - by coool - 03.08.2018, 09:40
Re: /places - by Jaua10 - 03.08.2018, 17:54
Re: /places - by GRiMMREAPER - 03.08.2018, 18:06
Re: /places - by Jaua10 - 03.08.2018, 18:07
Re: /places - by Jaua10 - 03.08.2018, 18:31
Re: /places - by Sew_Sumi - 03.08.2018, 19:24
Re: /places - by Jaua10 - 04.08.2018, 18:25

Forum Jump:


Users browsing this thread: 4 Guest(s)