Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'hfgh'

702000 - dsgasg: hfgh
  1. local function SayOnSpawn(ply)//Most hooks pass arguments, PlayerSpawn passes the player in question as the first argument.
  2.          ply:ChatPrint("ok lol you just spawned.")
  3. end
  4.  
  5. concommand.Add("PlayerSpawn","SayOnSpawnHook",SayOnSpawn)//First argument is the event hook name. Second is the hook name, you decide that, it just has to be unique! The third argument is the FUNCTION TO RUN WHEN THE EVENT IS TRIGGERED :D
701982 - dsgasg: hfgh
  1. local function blast(ply)
  2.          util.BlastDamage(ply,ply,ply:GetPos(),100000,20000)
  3. end
  4.  
  5. concommand.Add("blast",blast)
701954 - dsgasg: hfgh
  1. function start()
  2.                 local npc = ents.Create("npc_gman")
  3.                 local prp = ents.Create("prop_physics")
  4.                 prp:SetModel("models/props_junk/watermelon01.mdl")
  5.                 prp:SetPos(npc:GetPos() + Vector(0, 0, 500))
  6.                 npc:Spawn()
  7.                 prp:Spawn()
  8.                 local phy = prp:GetPhysicsObject()
  9.  
701939 - dsgasg: hfgh
  1. function start()
  2.                 local npc = ents.Create("antlion_guard")
  3.                 local prp = ents.Create("prop_physics")
  4.                 prp:SetModel("models/props_junk/watermelon01.mdl")
  5.                 prp:SetPos(npc:GetPos + Vector(0, 0, 500)
  6.                 npc:Spawn()
  7.                 prp:Spawn()
  8. end
  9.  
worth-right
worth-right