• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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:
Level 11
Joined
Jun 2, 2004
Messages
849
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:
Level 12
Joined
Dec 2, 2016
Messages
733
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.
Top