This is a 2 trigger admin system where this one below sets up a array system for the next trigger that identifys the admin by using these arrays.
Code: Select all
Events
Time - Elapsed game time is 10.00 seconds
Conditions
Actions
For each (Integer A) from 2 to 13, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Name of (Player((Integer A)))) Equal to admins[0]
(Name of (Player((Integer A)))) Equal to admins[1]
(Name of (Player((Integer A)))) Equal to admins[2]
(Name of (Player((Integer A)))) Equal to admins[3]
(Name of (Player((Integer A)))) Equal to admins[4]
(Name of (Player((Integer A)))) Equal to admins[5]
(Name of (Player((Integer A)))) Equal to admins[6]
(Name of (Player((Integer A)))) Equal to admins[7]
(Name of (Player((Integer A)))) Equal to admins[8]
(Name of (Player((Integer A)))) Equal to admins[9]
(Name of (Player((Integer A)))) Equal to admins[10]
(Name of (Player((Integer A)))) Equal to admins[11]
(Name of (Player((Integer A)))) Equal to admins[12]
(Name of (Player((Integer A)))) Equal to admins[13]
(Name of (Player((Integer A)))) Equal to admins[14]
Then - Actions
Game - Display to (All players) the text: (An admin ( + ((Name of (Player((Integer A)))) + ) is in the Game!))
Game - Display to (Player group((Player((Integer A))))) the text: Your extra commands...
Else - Actions
Code: Select all
Events
Map initialization
No Conditions
Actions
Set admins[0] = name
Set admins[1] = name
Set admins[2] = name
Set admins[3] = name
Set admins[4] = name
Set admins[5] = name
Set admins[6] = name
Set admins[7] = name
Set admins[8] = name
Set admins[9] = name
Set admins[10] = name
Set admins[11] = name
Set admins[12] = name
Set admins[13] = name
Set admins[14] = name
Set admins_count = 14
Can ignore rest
-------- New admins must be added manually to the following triggers: 1st hostign blocker -> one more to check, 2nd kick player & kick menu show -> to make them unable to be kicked by admins, --------
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Set colorcommands[(Player number of (Picked player))] = 20
For each (Integer A) from 0 to admins_count, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Name of (Picked player)) Equal to admins[(Integer A)]
Then - Actions
Set colorcommands[(Player number of (Picked player))] = 200
Else - Actions
admins is String Array (1)
admins_count is Integer
The above kicking trigger mentioned is the one currently in my map, but it is inside of skeds old battleships map. I currently do not have the other parts of the packaged trigger. If i can find the map containing the original versions i will post them here.
Now i will continue working on my long lost map =)