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!
this is system i made for kicking a player (made in BTanks style).
i've done so much systems (~8-10) may i post it sometime.
type -kick and a player number or the player name to start kick vote.
the vote will end after 20 sec or if all players have voted.
You are fucking right sir.
I was thinking of another function which creates a force out of all players, or something similar.
Anyway use that global constant, it's alot better than a function call.
This didn't work for me. I downloaded it and imported it with the variables and when i tried to test it said that the variables weren't working did i do some thing wrong?
-------- Paste these to your map initialization trigger. --------
For each (Integer KS_TempInteger) from 1 to 12, do (Actions)
Schleifen - Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
((Player(KS_TempInteger)) is in (All players)) Gleich True
'THEN'-Aktionen
Set KS_Players = (KS_Players + 1)
'ELSE'-Aktionen
KS KickAction
Ereignisse
Spieler - Spieler 1 (Rot) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 2 (Blau) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 3 (Blaugrau) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 4 (Lila) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 5 (Gelb) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 6 (Orange) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 7 (Grün) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 8 (Rosa) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 9 (Grau) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 10 (Hellblau) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 11 (Dunkelgrün) types a chat message containing -kick as Ein Teil-String
Spieler - Spieler 12 (Braun) types a chat message containing -kick as Ein Teil-String
Bedingungen
Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
KS_CanVote Gleich True
'THEN'-Aktionen
Custom script: call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"|cfffed312Wait unitill the current vote is finished.|r")
Skip remaining actions
'ELSE'-Aktionen
Set KS_KickPlayerNR = (Integer((Substring((Entered chat string), 7, (Length of (Entered chat string))))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
Or - Any (Conditions) are true
Bedingungen
KS_KickPlayerNR Kleiner gleich 0
KS_KickPlayerNR Gleich (Player number of (Triggering player))
KS_KickPlayerNR Größer als 12
'THEN'-Aktionen
Set KS_KickPlayerNR = 0
Set KS_TempString = (Substring((Entered chat string), 7, (Length of (Entered chat string))))
For each (Integer KS_TempInteger) from 1 to 12, do (Actions)
Schleifen - Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
KS_TempString Gleich (Name of (Player(KS_TempInteger)))
KS_TempInteger Ungleich (Player number of (Triggering player))
'THEN'-Aktionen
Set KS_KickPlayerNR = KS_TempInteger
Set KS_UseName = True
'ELSE'-Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
KS_UseName Gleich True
'THEN'-Aktionen
Set KS_UseName = False
'ELSE'-Aktionen
Custom script: call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"|cfffed312You have to specify a player to kick.|r")
Skip remaining actions
'ELSE'-Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
Or - Any (Conditions) are true
Bedingungen
((Player(KS_KickPlayerNR)) slot status) Gleich Wird nicht benutzt
((Player(KS_KickPlayerNR)) is in KS_KickedPlayers) Gleich True
((Player(KS_KickPlayerNR)) slot status) Gleich Hat das Spiel verlassen
'THEN'-Aktionen
Set KS_KickPlayerNR = 0
Custom script: call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"|cfffed312You have to specify a player to kick.|r")
Skip remaining actions
'ELSE'-Aktionen
Custom script: set udg_KS_TempString = PlayerColour(GetPlayerId(GetTriggerPlayer())+1)
Custom script: set udg_KS_Colour = PlayerColour(udg_KS_KickPlayerNR)
Spiel - Display to (All players) the text: ((KS_TempString + ((Name of (Triggering player)) + |r)) + ( |cfffed312would like to kick |r + (KS_Colour + ((Name of (Player(KS_KickPlayerNR))) + |r))))
Spiel - Display to (All players) the text: |cfffed312You have ...
Set KS_CanVote = True
Auslöser - Turn on KS YesVote <gen>
Auslöser - Turn on KS NoVote <gen>
For each (Integer KS_TempInteger) from 1 to 12, do (Actions)
Schleifen - Aktionen
Set KS_Voted[KS_TempInteger] = False
Set KS_Voted[(Player number of (Triggering player))] = True
Set KS_YesVotes = 1
Set KS_NoVotes = 0
Bestenliste - Create a leaderboard for (All players) titled (Kick Vote - Yes: + ((String(KS_YesVotes)) + ( No: + (String(KS_NoVotes)))))
this really looks useful, +rep
but pls post triggers at the start so i dont have to download^^
oh and btw AllPlayers() doesnt leak even a bit, cause at the map start the globals force
bj_FORCE_ALL_PLAYERS is declared, and if you call this function, it simply returns this global force, so its like using a global variable
-------- Paste these to your map initialization trigger. --------
For each (Integer KS_TempInteger) from 1 to 12, do (Actions)
Schleifen - Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
((Player(KS_TempInteger)) is in (All players)) Gleich True
'THEN'-Aktionen
Set KS_Players = (KS_Players + 1)
'ELSE'-Aktionen
ehm "((Player(KS_Tempinteger)) is in (All players)) Gleich True"
couldnt you just use all players if (All Players) is a global that has been declared from start ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.