Siml0x Posted January 31, 2011 Posted January 31, 2011 Hi there, I want to kill everyone who is AFK when a new race launches. So I created a simple function called "isPlayerAFKMode()" which is working fine. But it seems that I can't find the position in race_server.lua where the race launches so I can kill the player on start of a new race. Where is that position where I can integrate this snippet? if isPlayerAFKMode(player) == true then killPed(player) end
Castillo Posted January 31, 2011 Posted January 31, 2011 addEventHandler("onPlayerSpawn",root, function () if isPlayerAFKMode(source) == true then killPed(source) end end) should work.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now