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

Help!!!

Status
Not open for further replies.

KaWLinsH

K

KaWLinsH

How to make the map detect your name and then if you dont write -massage- it kicks you from game? plz help :sad:
 
Something like:

  • Player
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Name of (Player((Integer A)))) Equal to YourName
            • Then - Actions
              • Game - Defeat (Triggering player) with the message: You are kicked!
            • Else - Actions
              • Do nothing
 
Something like:

  • Player
    • Events
      • Time - Elapsed game time is 15.00 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Name of (Player((Integer A)))) Equal to YourName
              • MessageBoolean[Integer A] Equal to False
            • Then - Actions
              • Game - Defeat (Triggering player) with the message: You are kicked!
            • Else - Actions
              • Do nothing

Notice I made a small change.

And another trigger:

  • Player
    • Events
      • Player - player 1 writes "-massage" as an exact match
      • Player - player 2 writes "-massage" as an exact match
    • Conditions
    • Actions
      • Set MessageBoolean[Player Number of (triggering player)]=True
MessageBoolean is a Boolean, Initial value to "False" and an Array of 12.
 
sorry my bad i ment How to make the map detect your name and then if you write -massage- it DONT kick you from game?
 
let's analyse this sentence:

"How to make the map detect your name and then if you dont write -massage- it kicks you from game?"

The map detects your name after an amount of seconds, and if you have NOT (= don't) writen "massage" by then, you're kicked.

that's what I did, right?
If that's not what you need, Kawlinsh, rephrase please :)
 
Status
Not open for further replies.
Back
Top