• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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: 31
Last edited:
Status
Not open for further replies.
Top