Jump to content

Anti-Logout


CeKiT

Recommended Posts

Posted

Hola!

Queria saber como podia hacer para que un usuario al poner /logout lo kické. Por que detecte un bug en mi server que duplican el dinero. Usando ese comando.

Saludos

Posted
addEventHandler ( "onPlayerCommand", root, 
    function ( cmd ) 
        if ( cmd == "logout" ) then 
            kickPlayer ( source, nil, "Este comando esta prohibido." ) 
            cancelEvent ( ) 
        end 
    end 
) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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