• 🏆 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!

Prevent resource trading and singleplayer?

Status
Not open for further replies.
Level 10
Joined
Jun 7, 2008
Messages
420
How do I prevent singleplayer in my map?
I have disabled resource trading by setting click and ctrl click trading increment in gameplay constants to 0, is this a good way of doing this?
The anti-singleplayer code I put in doesnt seem to work.

AntiSPdetect
Events
Time - Elapsed game time is 1.00 seconds
Conditions
(Number of players in (All players controlled by a User player)) Not equal to 1
Actions
Trigger - Turn off AntiSPEnforce <gen>
Game - Display to (All players) for 5.00 seconds the text: MultiPlayer mode, S...

AntiSPEnforce
Events
Time - Elapsed game time is 2.00 seconds
Conditions
Actions
Trigger - Turn off Save <gen>
Trigger - Turn off Load <gen>
Game - Display to (All players) for 5.00 seconds the text: SinglePlayer mode, ...
 

Attachments

  • LOTR BATTLES HELMS DEEP v1.0 UNLOCKED.w3x
    679.8 KB · Views: 28
Last edited:
Status
Not open for further replies.
Top