Jump to content

Join(country) and AFK-kicker


Reflex#

Recommended Posts

Posted
addEventHandler('onClientPlayerJoin', root, 
    function() 
        outputChatBox('#0075eb[RHD] '  .. getPlayerName(source) .. ' has joined the server from' " .. array.city .. ", " .. array.country .. " (" .. getNormalCountryName(kraje[array.country]) .. "), 255,255,255) 
    end 
) 
  
addEventHandler('onClientPlayerChangeNick', root, 
    function(oldNick, newNick) 
        outputChatBox('#0075eb[RHD] '  .. oldNick .. ' is now known as ' .. newNick, 0,191,255) 
    end 
) 
  
addEventHandler('onClientPlayerQuit', root, 
    function(reason) 
        outputChatBox('#0075eb[RHD] '  .. getPlayerName(source) .. ' has left the game [' .. reason .. ']', 255,255,255) 
    end 
) 

How to create:When player join,saying from what country?

And 2-nd question:

How create AFK-kicker without getPlayerIdle?

Scripting in lua

Posted

That script is just mess, where's "array" defined? also, getNormalCountryName doesn't exists.

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.

Posted
This is a part of Wesseb's php joinquit script, you don't own it, you don't know how to script.

Close this, thanks.

This script i made from standart jounquit :|

Scripting in lua

Posted
That script is just mess, where's "array" defined? also, getNormalCountryName doesn't exists.

Can you show me how to do? :)

Scripting in lua

Posted
This is a part of Wesseb's php joinquit script, you don't own it, you don't know how to script.

Close this, thanks.

This script i made from standart jounquit :|

This is the default joinquit resource, yes, but you are using functions like "getNormalCountryName" that require Wesseb's php joinquit to work properly.

560x95_FFFFFF_FF9900_000000_000000.png

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...