[Ajuda] Portao em dialog
#2

PHP код:
        new SNN;

        
forward abrir();

        
forward fechar();
        
eu tenho essa fs
        
public OnFilterScriptInit()
        {
        
SNN CreateObject(980,238.97483437.80474.1666003.0);
        return 
1;
        }

        public 
OnPlayerCommandText(playeridcmdtext[])
        {
        if(
strcmp(cmdtext"/1383"true) == 0)
        {
        
ShowPlayerDialog(playerid,1697,DIALOG_STYLE_LIST," PORTAO BASE","{00FF00}ABRIR\n{FF0000}FECHAR","Selecionar" ,"Cancelar");
        return 
1;
        }
        return 
0;
        }
        public 
fechar()
        {
        
MoveObject(SNN238.97483437.80474.16663.0);

        return 
1;
        }

        public 
abrir()
        {
        
MoveObject(SNN238.97483437.8047, -1.47093.0);

        return 
1;
        }

        public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[ ])
        {
        if(
dialogid == 1697//Menu entrada 994
        
{
        if(!
response) return(playerid);

        if(
listitem == 0)
        {
        
MoveObject(SNN238.97483437.8047, -1.47093.0);
        return 
1;
        }
        if(
listitem == 1)
        {
        
MoveObject(SNN238.97483437.80474.16663.0);
        return 
1;
        }

        return 
0;
        }
        return 
0;
        } 
Reply


Messages In This Thread
Portao em dialog - by leandr58 - 27.07.2015, 17:18
Re: Portao em dialog - by JuniorTheDM - 27.07.2015, 17:27
Re: Portao em dialog - by iTakelot - 27.07.2015, 17:31
Re: Portao em dialog - by leandr58 - 27.07.2015, 18:00
Re: Portao em dialog - by iTakelot - 27.07.2015, 18:15
Re: Portao em dialog - by Jimmmy - 27.07.2015, 18:18
Re: Portao em dialog - by leandr58 - 27.07.2015, 19:52
Re: Portao em dialog - by iTakelot - 27.07.2015, 19:56
Re: Portao em dialog - by leandr58 - 27.07.2015, 20:11
Re: Portao em dialog - by leandr58 - 27.07.2015, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)