Advertising
advertising
related pastes to tag 'hfgh'
- 702000 - dsgasg: hfgh
-
- local function SayOnSpawn(ply)//Most hooks pass arguments, PlayerSpawn passes the player in question as the first argument.
- ply:ChatPrint("ok lol you just spawned.")
- end
- 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
-
- local function blast(ply)
- util.BlastDamage(ply,ply,ply:GetPos(),100000,20000)
- end
- concommand.Add("blast",blast)
- 701954 - dsgasg: hfgh
-
- function start()
- local npc = ents.Create("npc_gman")
- local prp = ents.Create("prop_physics")
- prp:SetModel("models/props_junk/watermelon01.mdl")
- prp:SetPos(npc:GetPos() + Vector(0, 0, 500))
- npc:Spawn()
- prp:Spawn()
- local phy = prp:GetPhysicsObject()
- 701939 - dsgasg: hfgh
-
- function start()
- local npc = ents.Create("antlion_guard")
- local prp = ents.Create("prop_physics")
- prp:SetModel("models/props_junk/watermelon01.mdl")
- prp:SetPos(npc:GetPos + Vector(0, 0, 500)
- npc:Spawn()
- prp:Spawn()
- end