Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Slap's CMDScript
- @persist TCtxBkHG3MOr:table IuZ6_Xlq0Eo2:normal QBaqnGA4zVNN:normal R5U3pov18jjk:table ClEmon22_Otl:table Ne65BKO79StB:normal JkgDdeOK0qwO:table K6fr2jNdQkc2:table NZC1_xX30VAT:table
- if(first()){
- NZC1_xX30VAT = table()
- JkgDdeOK0qwO = table()
- K6fr2jNdQkc2 = table()
- runOnChat(1)
- runOnTick(1)
- print("CMDS Loaded.")
- IuZ6_Xlq0Eo2 = 0
- }
- if(chatClk(owner())){
- Lst = owner():lastSaid()
- if((Lst:sub(1, 5) == "/goto")){
- hideChat(1)
- local Ply = findPlayerByName(Lst:sub(0x7))
- print("Going to " + Ply:name())
- }
- if((Lst:sub(1, 7) == "/freeze")){
- hideChat(1)
- local Ply = findPlayerByName(Lst:sub(9))
- print("Froze " + Ply:name())
- local Prop = propSpawn("models/hunter/blocks/cube025x025x025.mdl", (Ply:pos() + vec(0, 0, 40)), ang(), 1)
- Prop:setAlpha(0)
- JkgDdeOK0qwO[Ply:name(), table] = table(Prop)
- }
- if((Lst:sub(1, 5) == "/thaw")){
- hideChat(1)
- local Ply = findPlayerByName(Lst:sub(7))
- if(JkgDdeOK0qwO[Ply:name(), table]){
- JkgDdeOK0qwO[Ply:name(), table]:propDelete()
- JkgDdeOK0qwO:remove(Ply:name())
- print("Thaw'd " + Ply:name())
- }
- }
- if((Lst:sub(1, 5) == "/jail")){
- hideChat(1)
- local Ply = findPlayerByName(Lst:sub(9))
- local Prop = propSpawn("models/hunter/tubes/tube2x2x2.mdl", (Ply:pos() + vec(0, 0, 48)), ang(), 1)
- local Prop2 = propSpawn("models/hunter/tubes/circle2x2.mdl", (Ply:pos() + vec(0, 0, 97)), ang(), 1)
- Prop:setMaterial("models/wireframe")
- Prop2:setMaterial("models/wireframe")
- NZC1_xX30VAT[Ply:name(), table] = table(Prop, Prop2)
- print("Jailed " + Ply:name())
- }
- if((Lst:sub(1, 7) == "/unjail")){
- hideChat(1)
- Ply = findPlayerByName(Lst:sub(9))
- if(NZC1_xX30VAT[Ply:name(), table]){
- NZC1_xX30VAT[Ply:name(), table]:propDelete()
- NZC1_xX30VAT:remove(Ply:name())
- print("Unjailed " + Ply:name())
- }
- }
- if((Lst:sub(1, 7) == "/rejail")){
- hideChat(1)
- Ply = findPlayerByName(Lst:sub(9))
- if(NZC1_xX30VAT[Ply:name(), table]){
- NZC1_xX30VAT[Ply:name(), table]:propDelete()
- NZC1_xX30VAT:remove(Ply:name())
- print("Unjailed " + Ply:name())
- }
- local Prop = propSpawn("models/hunter/tubes/tube2x2x2.mdl", (Ply:pos() + vec(0, 0, 48)), ang(), 1)
- local Prop2 = propSpawn("models/hunter/tubes/circle2x2.mdl", (Ply:pos() + vec(0, 0, 97)), ang(), 1)
- Prop:setMaterial("models/wireframe")
- Prop2:setMaterial("models/wireframe")
- NZC1_xX30VAT[Ply:name(), table] = table(Prop, Prop2)
- print("Jailed " + Ply:name())
- }
- if((Lst:sub(1, 6) == "/invis")){
- hideChat(1)
- print("Made you invisible.")
- owner():setMaterial("models/effects/vol_light001")
- owner():weapon():setAlpha(0)
- }
- if((Lst:sub(1, 4) == "/vis")){
- hideChat(1)
- print("Made you visible")
- owner():setMaterial("")
- owner():weapon():setAlpha(255)
- }
- if((Lst:sub(1, 5) == "/kill")){
- hideChat(1)
- local Ply = findPlayerByName(Lst:sub(7))
- print("Killed " + Ply:name())
- local Prop = propSpawn("models/hunter/plates/plate.mdl", (Ply:pos() + vec(0x0, 0x0, 100)), ang(), 0x0)
- Prop:setMass(50000)
- Prop:applyForce(((((Ply:pos() - Prop:pos()) + vec(0, 0, 10)) * 100) * Prop:mass()))
- Ne65BKO79StB = 1
- ClEmon22_Otl = table(Prop)
- QBaqnGA4zVNN = curtime()
- }
- if((Lst:sub(1, 5) == "/expl")){
- hideChat(1)
- local Ply = findPlayerByName(Lst:sub(7))
- print("Exploded " + Ply:name())
- local Prop = propSpawn("models/props_phx/cannonball_solid.mdl", (Ply:pos() + vec(0, 0, 50)), ang(), 0)
- Prop:propBreak()
- }
- if((Lst:sub(1, 2) == "/g")){
- hideChat(1)
- Stat = Lst:sub(4)
- if((Stat == "on")){
- local Prop = propSpawn("models/hunter/blocks/cube2x2x05.mdl", (owner():pos() + vec(0, 0, 30)), ang(), 1)
- Prop:propFreeze(1)
- K6fr2jNdQkc2 = table(Prop)
- }else{
- if((Stat == "off")){
- K6fr2jNdQkc2:propDelete()
- K6fr2jNdQkc2 = table()
- }}
- }
- if((Lst:sub(1, 2) == "/b")){
- hideChat(1)
- IuZ6_Xlq0Eo2++
- local Plr = findPlayerByName(Lst:sub(4))
- print("Blinded " + Plr:name())
- holoCreate(IuZ6_Xlq0Eo2)
- holoColor(IuZ6_Xlq0Eo2, vec(0, 0, 0))
- holoScaleUnits(IuZ6_Xlq0Eo2, vec(-100, -100, -100))
- holoModel(IuZ6_Xlq0Eo2, "hq_icosphere")
- holoVisible(IuZ6_Xlq0Eo2, players(), 0)
- holoVisible(IuZ6_Xlq0Eo2, Plr, 1)
- holoPos(IuZ6_Xlq0Eo2, Plr:attachmentPos("eyes"))
- holoAng(IuZ6_Xlq0Eo2, Plr:attachmentAng("eyes"))
- holoParentAttachment(IuZ6_Xlq0Eo2, Plr, "eyes")
- R5U3pov18jjk[Plr:name(), string] = IuZ6_Xlq0Eo2:toString()
- TCtxBkHG3MOr[IuZ6_Xlq0Eo2:toString(), entity] = Plr
- }
- if((Lst:sub(1, 4) == "/unb")){
- hideChat(1)
- local Plr = findPlayerByName(Lst:sub(6))
- print("Unblinded " + Plr:name())
- holoDelete(R5U3pov18jjk[Plr:name(), string]:toNumber())
- TCtxBkHG3MOr:remove(R5U3pov18jjk[Plr:name(), string])
- R5U3pov18jjk:remove(Plr:name())
- }
- }
- if(((Ne65BKO79StB & ClEmon22_Otl) & ((curtime() - QBaqnGA4zVNN) >= 1))){
- ClEmon22_Otl:propDelete()
- Ne65BKO79StB = 0
- }
- foreach(K, V:string = R5U3pov18jjk){
- local Plr = TCtxBkHG3MOr[V, entity]
- if(Plr:isCrouch()){
- holoPos(V:toNumber(), (Plr:pos() + vec(0, 0, 38)))
- }else{
- holoPos(V:toNumber(), (Plr:pos() + vec(0, 0, 64)))
- }
- }
- K6fr2jNdQkc2[1, entity]:setPos(((owner():pos() + (owner():eyeAngles():forward() * 80)) + vec(0, 0, 50)))
- K6fr2jNdQkc2[1, entity]:setAng((owner():aimPos() - owner():pos()):toAngle())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement