Jump to content

HELP-ME!


Dinossauro

Recommended Posts

I made a script that works well.

When any manager (only administrators can use the same) writes / dm, enters a different dimension and a message appears: Did another dimension, and make / sairdm to return to the current size and appears: You left dimension.

function ( getElementDimension ( source ) == 0 )  
            setElementDimension ( source, 1 )           
            setElementDimension ( source, 1 )   
            outputChatBox( Você entrou na Dimensão );          
         end 
end              
addCommandHandler ( "dm", ElementDimension ) 
  
function ( getElementDimension ( source ) == 0 )  
            setElementDimension ( source, 0 )           
            setElementDimension ( source, 0 )   
            outputChatBox( Você saiu da Dimensão ); 
         end 
end          
addCommandHandler ( "sairdm", ElementDimension ) 
  

But it is giving error. Help me, please!

Link to comment
function ElementDimension ( thePlayer, commandName ) 
    if ( commandName == "dm" ) then 
        setElementDimension ( thePlayer, 1 ) 
        outputChatBox ( "Você entrou na Dimensão", thePlayer ) 
    elseif ( commandName == "sairdm" ) then 
        setElementDimension ( thePlayer, 0 ) 
        outputChatBox ( "Você saiu da Dimensão", thePlayer ) 
    end 
end             
addCommandHandler ( "dm", ElementDimension ) 
addCommandHandler ( "sairdm", ElementDimension ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...