Jump to content
  • 0

@afk source mod


Question

6 answers to this question

Recommended Posts

Posted (edited)

I do not know if bindatcmd will overwrite the original @afk or not. You should probably test it and see

 

If that doesnt work then, heres something that may pull it off.

the AFK command is based off of the Autotrade command.

 

You can add a new script function to check if player is on autotrade mode

Using if Player's Session Data state = sd->state.autotrade

 

return 1;

 

NOTE: This is my theory on how it could be achieved. It may not be 100% guaranteed.

Edited by Evelynn
Posted (edited)

or i could edit the name of @afk into something like @afkx then bindatcmd the @afk that will automatically run the @afkx command. 

 

sorry bad english. you think this will work?

 

or disable the @afk command in the players command and replace it with bindatcmd @logout that will automatically trigger the real @afk after setting a variable to a player.

Edited by LatSo

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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