• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How can I detect if a player recieved resources form another?

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
Edit: I learned that even if you disable resource trading in the gameplay constants, apparently the newest map hack can hack open the trading console.

Can I detect if a player sent resources to X player? If so then I can kick that player, otherwise this is a huge game breaking feature in my game. I disabled resource sharing because it breaks the game completely.
 
Last edited:
Kinda. There's a player score that tells you the amount of resources sent and received. You have to poll it every once in a while and ensure it's 0.

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Player 1 (Red) Gold Given To Allies) Greater than 0
    • Then - Actions
      • Game - Defeat Player 1 (Red) with the message: omg haxorz
    • Else - Actions
Gold and lumber given/received are all under Player - Player Score, an integer function.


Oh, and remember to be kind to whoever RECEIVED the resources, because if you kick them too, it suddenly becomes a griefing mechanism for hackers.
 
Last edited:
Kinda. There's a player score that tells you the amount of resources sent and received. You have to poll it every once in a while and ensure it's 0.

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Player 1 (Red) Gold Given To Allies) Greater than 0
    • Then - Actions
      • Game - Defeat Player 1 (Red) with the message: omg haxorz
    • Else - Actions
Gold and lumber given/received are all under Player - Player Score, an integer function.


Oh, and remember to be kind to whoever RECEIVED the resources, because if you kick them too, it suddenly becomes a griefing mechanism for hackers.

Ah perfect and yeah I'm just gonna kick the person who sends not receives.
 
Status
Not open for further replies.
Back
Top