Jump to content

Mod AFK system


//_Dragon

Recommended Posts

Guys , i did not find the great mod :/ i need mod when players is not using keayboard or mouse the skin's alpha will change to 0 & when he come back i mean using keayboard or mouse the skin's alpha will come back to 250

Yous understand guys !? | i hope some one creat this script . :|:|

Link to comment
Cant u guys understand he need grafuroam afk system that turns u auto afk if not moving 30 secs

The guys are understanding. But begging for ready code is not the right thing to do here! And please read carefully the other replies before you reply!

And now on the topic:

Find a normal afk script. Open it and replace the function where it kills/kicks the player with setElementAlpha(player,250)

Is it that hard ? I don't think so.

Link to comment
OMG. Really guys? Better dont trust this guy. He is using all of you he cant even make an:
outputChatBox 

Well ... you are saying this like we know the guy who made the topic.

He asked for "help" but actually he wants ready code so I suggest this topic to be closed.

If you know nothing about lua and you are asking for someone to give you the script in silver platter you are in the totally wrong place. So Droam|Oussez you better learn scripting or at least try to write some code and we will help you out!

Link to comment
  • 2 weeks later...

If the player in AFK, change her dimension.

Then when he is back, make it back to the normal dimension.

What you need:

setElementDimension -- To invisibility effect. 
setTimer -- create it if the player in "stand" movestate, and kill if the movestate is changed. 
getPedMoveState -- if is it "stand", then he is maybe AFK. 

Link to comment
If the player in AFK, change her dimension.

Then when he is back, make it back to the normal dimension.

What you need:

setElementDimension -- To invisibility effect. 
setTimer -- create it if the player in "stand" movestate, and kill if the movestate is changed. 
getPedMoveState -- if is it "stand", then he is maybe AFK. 

Edit: Replace the movestate to the getPlayerIdleTime.

Link to comment

Oussez dont even made a fuking script. If someone helps him and then he dont care about that person. He sais that he made scripts but they are stolen from forums. He want to clone grafuroam only not to make something original. I had some deal with this guy and i know about im talking.

Link to comment
=====================================toni012899===========================

Dude i creat the mod but steal have problem anyway i send u the mod in pm i hope u fixe it

If you were the author of the code you sent me you could fix it.

There is not much to do on it, it's not even hard ... but of course you need "help". I suggest you to get paid scripter or at least stop spamming.

Link to comment

Here's a simple AFK System

  
  
  
  
function PosTime(source) 
local pos1 = getElementPosition(source) 
if (pos == pos1) then 
outputChatBox ( "You are AFK use / back to back", source, 255, 255, 0) 
outputChatBox ( "#ff0000[iNFO] #ffffffThe Player " ..getPlayerName(source).. "#ffffff is now AFK #ff0000!",getRootElement(), 0,153,255, true)  
  
setElementFrozen (source, true) 
setElementDimension (source, -- s8) -->
setElementData(source, "", 1) 
            fadeCamera(false) 
else 
outputChatBox ( "Moving \"{SMILIES_PATH}/icon_sad.gif\" alt=\"\" title=\"Sad\" />", source, 255, 0, 0) 
end 
end 
function afkGo(source) 
pos = getElementPosition(source) 
outputChatBox ( "Wait 5 seconds without moving", source, 0, 255, 0) 
setTimer(PosTime,5000,1,source) 
end 
  
addCommandHandler('afk', afkGo) 
  
function afkExit(source) 
outputChatBox ( "Você está de volta!", source, 0, 255, 0) 
outputChatBox ( "#FF0000[iNFO] #FFFFFFThe Player " ..getPlayerName(source).. " #ffffff as exit on  AFK #FF0000!", getRootElement(), 0,153,255, true)  
setElementFrozen (source, false) 
        setElementDimension (source,0) 
        setElementData (source,0) 
            fadeCamera(true) 
end 
  
addCommandHandler('back', afkExit) 
  
function awayList(source) 

Link to comment
Here's a simple AFK System
  
  
  
  
function PosTime(source) 
local pos1 = getElementPosition(source) 
if (pos == pos1) then 
outputChatBox ( "You are AFK use / back to back", source, 255, 255, 0) 
outputChatBox ( "#ff0000[iNFO] #ffffffThe Player " ..getPlayerName(source).. "#ffffff is now AFK #ff0000!",getRootElement(), 0,153,255, true)  
 setElementFrozen (source, true) 
setElementDimension (source, 8 ) 
setElementData(source, "", 1) 
            fadeCamera(false) 
else 
else 
outputChatBox ( "You are Moving!", source, 255, 0, 0) 
end 
end 
function afkGo(source) 
pos = getElementPosition(source) 
outputChatBox ( "Wait 5 seconds without moving", source, 0, 255, 0) 
setTimer(PosTime,5000,1,source) 
end 
  
addCommandHandler('afk', afkGo) 
  
function afkExit(source) 
outputChatBox ( "Você está de volta!", source, 0, 255, 0) 
outputChatBox ( "#FF0000[iNFO] #FFFFFFThe Player " ..getPlayerName(source).. " #ffffff as exit on  AFK #FF0000!", getRootElement(), 0,153,255, true)  
setElementFrozen (source, false) 
        setElementDimension (source,0) 
        setElementData (source,0) 
            fadeCamera(true) 
end 
  
addCommandHandler('back', afkExit) 
  
function awayList(source) 

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