Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Kfc_admin_tools
- @inputs
- @outputs
- @persist Jail:entity Player:entity PlayerG:entity Goto:entity Return:vector Goto2:entity PlayerS:entity SlayBlock:entity
- @trigger
- if(first()){
- hint("Logs by Aden",5)
- hint("Rest Kfc",5)
- }
- runOnChat(1)
- runOnTick(1)
- ######################### LOGS
- runOnDeath(1)
- runOnDmg(1)
- runOnConnect(1)
- runOnDisconnect(1)
- runOnSpawn(1)
- Ent=lastDeathInflictor()
- local Strings = Ent:model():explode( "/" )
- local Model = Strings[ Strings:count(),string ]:replace( ".mdl"," " )
- if (deathClk()) {
- Time = "[" + time("hour") + ":" + time("min") + ":" + time("sec") + "] "
- if (lastDeathAttacker():type()=="player" & lastDeathAttacker():name()!=lastDeath():name()) {
- print(1," [Death]: "+lastDeath():name() + "[ "+lastDeath():steamID() + " ] Was killed by "+lastDeathAttacker():name()+"[ "+lastDeathAttacker():steamID()+" ]! ")
- }
- elseif (lastDeathAttacker():name()==lastDeath():name()) {
- print(1," [Suicide]: "+lastDeath():name()+"[ "+lastDeath():steamID() + " ] Took some pills!")
- }
- if (lastDeathInflictor():type()=="prop_physics") {
- print(1," [DeathPK]: "+lastDeath():name()+"[ "+lastDeath():steamID()+" ] "+ " Was killed with "+Model+" Owner: "+lastDeathInflictor():owner():name()+"[ "+lastDeathInflictor():owner():steamID()+" ]! ")
- }
- elseif (lastDeathInflictor():name()=="") {
- print(1," [DeathOther]: "+lastDeath():name() + "[ "+lastDeath():steamID() +" ] Has Died From Blood Loss!")
- }
- }
- if (spawnClk()&lastSpawnedPlayer()!=lastConnectedPlayer()) {
- print(1," [Spawn]: "+lastSpawnedPlayer():name()+"[ " + lastSpawnedPlayer():steamID() + " ] Has spawned!")
- }
- if (connectClk()) {
- print(1," [Connect]: "+lastConnectedPlayer():name()+"[ " + lastSpawnedPlayer():steamID() + " ] Has connected!")
- }
- if (disconnectClk()) {
- print(1," [Disconnect]: "+lastDisconnectedPlayer():name()+"[ " + lastSpawnedPlayer():steamID() + " ] Has disconnected!")
- }
- ###################################JAIL
- S = owner():lastSaid():explode(" ")
- if(chatClk(owner())){
- if(S:string(1)=="/jail"){
- TempPlayer = findPlayerByName(S:string(2))
- if(TempPlayer:isPlayer()){
- Player = TempPlayer
- timer("jail",100)
- hideChat(1)
- }
- }
- if(S:string(1)=="/unjail"){
- Jail:propDelete()
- hideChat(1)
- }
- }
- Jail:setPos(Player:pos())
- Jail:setAlpha(1)
- if(clk("jail")){
- Jail=propSpawn("models/hunter/blocks/cube2x2x2.mdl",Player:pos(),1)
- }
- ##################################Goto
- if(chatClk(owner())){
- if(S[1,string]=="/goto"){
- TempPlayer2 = findPlayerByName(S:string(2))
- if(TempPlayer2:isPlayer()){
- PlayerG = TempPlayer2
- Goto = seatSpawn("models/props_phx/carseat3.mdl",owner():pos(),ang(0,0,90),1)
- Return = owner():pos()
- hideChat(1)
- }
- }
- }
- if(chatClk(owner())){
- if(S[1,string]=="/back"){
- Goto2 = seatSpawn("models/props_phx/carseat3.mdl",owner():pos(),ang(0,0,90),1)
- hideChat(1)
- }
- }
- if(Goto:driver():isPlayer()){
- Goto:setPos(PlayerG:pos())
- timer("A",100)
- }
- if(Goto2:driver():isPlayer()){
- Goto2:setPos(Return)
- timer("A",100)
- }
- if(clk("A")){
- Goto:propDelete()
- Goto2:propDelete()
- ###################################SLAY
- }
- if(chatClk(owner())){
- if(S[1,string]=="/slay"){
- TempPlayer3 = findPlayerByName(S:string(2))
- if(TempPlayer3:isPlayer()){
- PlayerS = TempPlayer3
- SlayBlock = propSpawn("models/hunter/blocks/cube075x075x075.mdl",PlayerS:pos()+vec(0,0,110),0)
- SlayBlock:setMass(10000)
- SlayBlock:applyForce(PlayerS:pos()-SlayBlock:pos())
- timer("N",100)
- hideChat(1)
- }
- }
- }
- if(clk("N")){
- SlayBlock:propDelete()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement