Advertisement
TylerB

Kfc_admin_tools

Aug 13th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. @name Kfc_admin_tools
  2. @inputs
  3. @outputs
  4. @persist Jail:entity Player:entity PlayerG:entity Goto:entity Return:vector Goto2:entity PlayerS:entity SlayBlock:entity
  5. @trigger
  6. if(first()){
  7. hint("Logs by Aden",5)
  8. hint("Rest Kfc",5)
  9. }
  10. runOnChat(1)
  11. runOnTick(1)
  12. ######################### LOGS
  13. runOnDeath(1)
  14. runOnDmg(1)
  15. runOnConnect(1)
  16. runOnDisconnect(1)
  17. runOnSpawn(1)
  18. Ent=lastDeathInflictor()
  19. local Strings = Ent:model():explode( "/" )
  20. local Model = Strings[ Strings:count(),string ]:replace( ".mdl"," " )
  21.  
  22. if (deathClk()) {
  23. Time = "[" + time("hour") + ":" + time("min") + ":" + time("sec") + "] "
  24. if (lastDeathAttacker():type()=="player" & lastDeathAttacker():name()!=lastDeath():name()) {
  25.  
  26. print(1," [Death]: "+lastDeath():name() + "[ "+lastDeath():steamID() + " ] Was killed by "+lastDeathAttacker():name()+"[ "+lastDeathAttacker():steamID()+" ]! ")
  27. }
  28. elseif (lastDeathAttacker():name()==lastDeath():name()) {
  29. print(1," [Suicide]: "+lastDeath():name()+"[ "+lastDeath():steamID() + " ] Took some pills!")
  30. }
  31. if (lastDeathInflictor():type()=="prop_physics") {
  32. print(1," [DeathPK]: "+lastDeath():name()+"[ "+lastDeath():steamID()+" ] "+ " Was killed with "+Model+" Owner: "+lastDeathInflictor():owner():name()+"[ "+lastDeathInflictor():owner():steamID()+" ]! ")
  33. }
  34. elseif (lastDeathInflictor():name()=="") {
  35. print(1," [DeathOther]: "+lastDeath():name() + "[ "+lastDeath():steamID() +" ] Has Died From Blood Loss!")
  36. }
  37. }
  38. if (spawnClk()&lastSpawnedPlayer()!=lastConnectedPlayer()) {
  39. print(1," [Spawn]: "+lastSpawnedPlayer():name()+"[ " + lastSpawnedPlayer():steamID() + " ] Has spawned!")
  40. }
  41. if (connectClk()) {
  42. print(1," [Connect]: "+lastConnectedPlayer():name()+"[ " + lastSpawnedPlayer():steamID() + " ] Has connected!")
  43. }
  44. if (disconnectClk()) {
  45. print(1," [Disconnect]: "+lastDisconnectedPlayer():name()+"[ " + lastSpawnedPlayer():steamID() + " ] Has disconnected!")
  46. }
  47. ###################################JAIL
  48. S = owner():lastSaid():explode(" ")
  49. if(chatClk(owner())){
  50. if(S:string(1)=="/jail"){
  51. TempPlayer = findPlayerByName(S:string(2))
  52. if(TempPlayer:isPlayer()){
  53. Player = TempPlayer
  54. timer("jail",100)
  55. hideChat(1)
  56. }
  57. }
  58. if(S:string(1)=="/unjail"){
  59. Jail:propDelete()
  60. hideChat(1)
  61. }
  62.  
  63. }
  64. Jail:setPos(Player:pos())
  65. Jail:setAlpha(1)
  66. if(clk("jail")){
  67. Jail=propSpawn("models/hunter/blocks/cube2x2x2.mdl",Player:pos(),1)
  68. }
  69. ##################################Goto
  70. if(chatClk(owner())){
  71. if(S[1,string]=="/goto"){
  72. TempPlayer2 = findPlayerByName(S:string(2))
  73. if(TempPlayer2:isPlayer()){
  74. PlayerG = TempPlayer2
  75. Goto = seatSpawn("models/props_phx/carseat3.mdl",owner():pos(),ang(0,0,90),1)
  76. Return = owner():pos()
  77. hideChat(1)
  78. }
  79. }
  80. }
  81. if(chatClk(owner())){
  82. if(S[1,string]=="/back"){
  83.  
  84. Goto2 = seatSpawn("models/props_phx/carseat3.mdl",owner():pos(),ang(0,0,90),1)
  85. hideChat(1)
  86.  
  87. }
  88. }
  89. if(Goto:driver():isPlayer()){
  90. Goto:setPos(PlayerG:pos())
  91. timer("A",100)
  92. }
  93. if(Goto2:driver():isPlayer()){
  94. Goto2:setPos(Return)
  95. timer("A",100)
  96. }
  97. if(clk("A")){
  98. Goto:propDelete()
  99. Goto2:propDelete()
  100. ###################################SLAY
  101. }
  102. if(chatClk(owner())){
  103. if(S[1,string]=="/slay"){
  104. TempPlayer3 = findPlayerByName(S:string(2))
  105. if(TempPlayer3:isPlayer()){
  106. PlayerS = TempPlayer3
  107. SlayBlock = propSpawn("models/hunter/blocks/cube075x075x075.mdl",PlayerS:pos()+vec(0,0,110),0)
  108. SlayBlock:setMass(10000)
  109. SlayBlock:applyForce(PlayerS:pos()-SlayBlock:pos())
  110. timer("N",100)
  111. hideChat(1)
  112. }
  113.  
  114.  
  115. }
  116. }
  117. if(clk("N")){
  118. SlayBlock:propDelete()
  119. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement