• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

AFK Script

Status
Not open for further replies.
Level 6
Joined
Feb 18, 2010
Messages
153
is it possible to make a AFK Script!

-AFK

1. Stops them from dieing
2. Stops them from using there units
3. Stops them from earning gold and lumber
4. Stops them completely from doing anything
5. When game is just them and 1 more persno in game the person thast nots AFK wins

-Back enables it all again
 
Yes.

Just register the chat command, -AFK and -Back as the event.

Then stop Enable/Disable the triggers you want.

Make use of a Boolean variable called AFK, make it an array of 12 (or number of players) With this array, you can do a peridioci check to see if there is 2 people, and if either of them are AFK based on the boolean array, you can know to give victory to the other person.
 
Status
Not open for further replies.
Back
Top