SHARE
TWEET

Untitled

a guest Aug 21st, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Trigger: Set Admin
  2. function Trig_Set_Admin_Func011001 takes nothing returns boolean
  3.     return ( GetPlayerName(GetTriggerPlayer()) == "horsefrog" )
  4. endfunction
  5.  
  6. function Trig_Set_Admin_Func012001 takes nothing returns boolean
  7.     return ( GetPlayerName(GetTriggerPlayer()) == "horsefrog" )
  8. endfunction
  9.  
  10. function Trig_Set_Admin_Func013001 takes nothing returns boolean
  11.     return ( GetPlayerName(GetTriggerPlayer()) == "killer59" )
  12. endfunction
  13.  
  14. function Trig_Set_Admin_Func014001 takes nothing returns boolean
  15.     return ( GetPlayerName(GetTriggerPlayer()) == "killer59" )
  16. endfunction
  17.  
  18. function Trig_Set_Admin_Func015001 takes nothing returns boolean
  19.     return ( GetPlayerName(GetTriggerPlayer()) == "Kengbee" )
  20. endfunction
  21.  
  22. function Trig_Set_Admin_Func016001 takes nothing returns boolean
  23.     return ( GetPlayerName(GetTriggerPlayer()) == "Kengbee" )
  24. endfunction
  25.  
  26. function Trig_Set_Admin_Actions takes nothing returns nothing
  27.     if ( Trig_Set_Admin_Func011001() ) then
  28.         set udg_AdminPlayer = GetTriggerPlayer()
  29.     else
  30.         call DoNothing(  )
  31.     endif
  32.     if ( Trig_Set_Admin_Func012001() ) then
  33.         call ForceAddPlayerSimple( GetTriggerPlayer(), udg_AdminPlayerGroup )
  34.     else
  35.         call DoNothing(  )
  36.     endif
  37.     if ( Trig_Set_Admin_Func013001() ) then
  38.         set udg_admin2 = GetTriggerPlayer()
  39.     else
  40.         call DoNothing(  )
  41.     endif
  42.     if ( Trig_Set_Admin_Func014001() ) then
  43.         call ForceAddPlayerSimple( GetTriggerPlayer(), udg_AdminPlayerGroup )
  44.     else
  45.         call DoNothing(  )
  46.     endif
  47.     if ( Trig_Set_Admin_Func015001() ) then
  48.         set udg_admin3 = GetTriggerPlayer()
  49.     else
  50.         call DoNothing(  )
  51.     endif
  52.     if ( Trig_Set_Admin_Func016001() ) then
  53.         call ForceAddPlayerSimple( GetTriggerPlayer(), udg_AdminPlayerGroup )
  54.     else
  55.         call DoNothing(  )
  56.     endif
  57. endfunction
  58.  
  59. function InitTrig_Set_Admin takes nothing returns nothing
  60.     set gg_trg_Set_Admin = CreateTrigger(  )
  61.     call TriggerRegisterPlayerChatEvent( gg_trg_Set_Admin, Player(0), "-enable admin", true )
  62.     call TriggerRegisterPlayerChatEvent( gg_trg_Set_Admin, Player(1), "-enable admin", true )
  63.     call TriggerRegisterPlayerChatEvent( gg_trg_Set_Admin, Player(2), "-enable admin", true )
  64.     call TriggerRegisterPlayerChatEvent( gg_trg_Set_Admin, Player(3), "-enable admin", true )
  65.     call TriggerRegisterPlayerChatEvent( gg_trg_Set_Admin, Player(4), "-enable admin", true )
  66.     call TriggerRegisterPlayerChatEvent( gg_trg_Set_Admin, Player(5), "-enable admin", true )
  67.     call TriggerRegisterPlayerChatEvent( gg_trg_Set_Admin, Player(6), "-enable admin", true )
  68.     call TriggerRegisterPlayerChatEvent( gg_trg_Set_Admin, Player(7), "-enable admin", true )
  69.     call TriggerRegisterPlayerChatEvent( gg_trg_Set_Admin, Player(9), "-enable admin", true )
  70.     call TriggerRegisterPlayerChatEvent( gg_trg_Set_Admin, Player(10), "-enable admin", true )
  71.     call TriggerAddAction( gg_trg_Set_Admin, function Trig_Set_Admin_Actions )
  72. endfunction
  73.  
  74. // Trigger: horsefrog
  75. function Trig_horsefrog_Func009001 takes nothing returns boolean
  76.     return ( GetPlayerName(GetTriggerPlayer()) == "horsefrog" )
  77. endfunction
  78.  
  79. function Trig_horsefrog_Actions takes nothing returns nothing
  80.     if ( Trig_horsefrog_Func009001() ) then
  81.         call CreateNUnitsAtLocFacingLocBJ( 1, 'E00B', GetTriggerPlayer(), GetUnitLoc(GroupPickRandomUnit(GetUnitsInRectOfPlayer(GetPlayableMapRect(), GetTriggerPlayer()))), GetCameraTargetPositionLoc() )
  82.     else
  83.         call DoNothing(  )
  84.     endif
  85. endfunction
  86.  
  87. function InitTrig_horsefrog takes nothing returns nothing
  88.     set gg_trg_horsefrog = CreateTrigger(  )
  89.     call TriggerRegisterPlayerChatEvent( gg_trg_horsefrog, Player(0), "-horsefrog", true )
  90.     call TriggerRegisterPlayerChatEvent( gg_trg_horsefrog, Player(1), "-horsefrog", true )
  91.     call TriggerRegisterPlayerChatEvent( gg_trg_horsefrog, Player(2), "-horsefrog", true )
  92.     call TriggerRegisterPlayerChatEvent( gg_trg_horsefrog, Player(3), "-horsefrog", true )
  93.     call TriggerRegisterPlayerChatEvent( gg_trg_horsefrog, Player(4), "-horsefrog", true )
  94.     call TriggerRegisterPlayerChatEvent( gg_trg_horsefrog, Player(5), "-horsefrog", true )
  95.     call TriggerRegisterPlayerChatEvent( gg_trg_horsefrog, Player(6), "-horsefrog", true )
  96.     call TriggerRegisterPlayerChatEvent( gg_trg_horsefrog, Player(7), "-horsefrog", true )
  97.     call TriggerAddAction( gg_trg_horsefrog, function Trig_horsefrog_Actions )
  98. endfunction
  99.  
  100. // Trigger: killer59
  101. function Trig_killer59_Func001001 takes nothing returns boolean
  102.     return ( GetPlayerName(GetTriggerPlayer()) == "killer59" )
  103. endfunction
  104.  
  105. function Trig_killer59_Actions takes nothing returns nothing
  106.     if ( Trig_killer59_Func001001() ) then
  107.         call CreateNUnitsAtLocFacingLocBJ( 1, 'E00C', GetTriggerPlayer(), GetUnitLoc(GroupPickRandomUnit(GetUnitsInRectOfPlayer(GetPlayableMapRect(), GetTriggerPlayer()))), GetCameraTargetPositionLoc() )
  108.     else
  109.         call DoNothing(  )
  110.     endif
  111. endfunction
  112.  
  113. function InitTrig_killer59 takes nothing returns nothing
  114.     set gg_trg_killer59 = CreateTrigger(  )
  115.     call TriggerRegisterPlayerChatEvent( gg_trg_killer59, Player(0), "-killer59", true )
  116.     call TriggerRegisterPlayerChatEvent( gg_trg_killer59, Player(1), "-killer59", true )
  117.     call TriggerRegisterPlayerChatEvent( gg_trg_killer59, Player(2), "-killer59", true )
  118.     call TriggerRegisterPlayerChatEvent( gg_trg_killer59, Player(3), "-killer59", true )
  119.     call TriggerRegisterPlayerChatEvent( gg_trg_killer59, Player(4), "-killer59", true )
  120.     call TriggerRegisterPlayerChatEvent( gg_trg_killer59, Player(5), "-killer59", true )
  121.     call TriggerRegisterPlayerChatEvent( gg_trg_killer59, Player(6), "-killer59", true )
  122.     call TriggerRegisterPlayerChatEvent( gg_trg_killer59, Player(7), "-killer59", true )
  123.     call TriggerAddAction( gg_trg_killer59, function Trig_killer59_Actions )
  124. endfunction
  125.  
  126. // Trigger: Kengbee
  127. function Trig_Kengbee_Func001001 takes nothing returns boolean
  128.     return ( GetPlayerName(GetTriggerPlayer()) == "Kengbee" )
  129. endfunction
  130.  
  131. function Trig_Kengbee_Actions takes nothing returns nothing
  132.     if ( Trig_Kengbee_Func001001() ) then
  133.         call CreateNUnitsAtLocFacingLocBJ( 1, 'E00D', GetTriggerPlayer(), GetUnitLoc(GroupPickRandomUnit(GetUnitsInRectOfPlayer(GetPlayableMapRect(), GetTriggerPlayer()))), GetCameraTargetPositionLoc() )
  134.     else
  135.         call DoNothing(  )
  136.     endif
  137. endfunction
  138.  
  139. function InitTrig_Kengbee takes nothing returns nothing
  140.     set gg_trg_Kengbee = CreateTrigger(  )
  141.     call TriggerRegisterPlayerChatEvent( gg_trg_Kengbee, Player(0), "-falloutman", true )
  142.     call TriggerRegisterPlayerChatEvent( gg_trg_Kengbee, Player(1), "-falloutman", true )
  143.     call TriggerRegisterPlayerChatEvent( gg_trg_Kengbee, Player(2), "-falloutman", true )
  144.     call TriggerRegisterPlayerChatEvent( gg_trg_Kengbee, Player(3), "-falloutman", true )
  145.     call TriggerRegisterPlayerChatEvent( gg_trg_Kengbee, Player(4), "-falloutman", true )
  146.     call TriggerRegisterPlayerChatEvent( gg_trg_Kengbee, Player(5), "-falloutman", true )
  147.     call TriggerRegisterPlayerChatEvent( gg_trg_Kengbee, Player(6), "-falloutman", true )
  148.     call TriggerRegisterPlayerChatEvent( gg_trg_Kengbee, Player(7), "-falloutman", true )
  149.     call TriggerAddAction( gg_trg_Kengbee, function Trig_Kengbee_Actions )
  150. endfunction
  151.  
  152. // Trigger: Check Admin
  153. function Trig_Check_Admin_Actions takes nothing returns nothing
  154.     call DisplayTextToForce( udg_AdminPlayerGroup, ( "Admin Players = " + ( GetPlayerName(udg_AdminPlayer) + ( GetPlayerName(udg_admin2) + GetPlayerName(udg_admin3) ) ) ) )
  155. endfunction
  156.  
  157. function InitTrig_Check_Admin takes nothing returns nothing
  158.     set gg_trg_Check_Admin = CreateTrigger(  )
  159.     call TriggerRegisterPlayerChatEvent( gg_trg_Check_Admin, Player(0), "-player name", true )
  160.     call TriggerRegisterPlayerChatEvent( gg_trg_Check_Admin, Player(1), "-player name", true )
  161.     call TriggerRegisterPlayerChatEvent( gg_trg_Check_Admin, Player(2), "-player name", true )
  162.     call TriggerRegisterPlayerChatEvent( gg_trg_Check_Admin, Player(3), "-player name", true )
  163.     call TriggerRegisterPlayerChatEvent( gg_trg_Check_Admin, Player(4), "-player name", true )
  164.     call TriggerRegisterPlayerChatEvent( gg_trg_Check_Admin, Player(5), "-player name", true )
  165.     call TriggerRegisterPlayerChatEvent( gg_trg_Check_Admin, Player(6), "-player name", true )
  166.     call TriggerRegisterPlayerChatEvent( gg_trg_Check_Admin, Player(7), "-player name", true )
  167.     call TriggerRegisterPlayerChatEvent( gg_trg_Check_Admin, Player(9), "-player name", true )
  168.     call TriggerRegisterPlayerChatEvent( gg_trg_Check_Admin, Player(10), "-player name", true )
  169.     call TriggerAddAction( gg_trg_Check_Admin, function Trig_Check_Admin_Actions )
  170. endfunction
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top