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

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

Last edited:
Status
Not open for further replies.
Back
Top