Jump to content

Join(country) and AFK-kicker


Reflex#

Recommended Posts

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?

Link to comment
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.

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