Tidas

Untitled

Jun 29th, 2013
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. hook.Add("POWERSTRUGGLE_WIN","HookWin",function(winners,area)
  2.  
  3. local SpawnItems = {
  4. "melon",
  5. "chinese_takeout",
  6. "beer",
  7. "whiskey",
  8. "chloroform"
  9. }
  10.  
  11. local pos = PS.Positions[area][1]
  12.  
  13. if pos then
  14.  
  15. for i=1,5 do
  16. // Clockwork.entity:CreateItem(NULL, Clockwork.item.stored[table.Random(SpawnItems)], pos + Vector(math.random(-200,200),math.random(-200,200),100), Angle(0,0,0))
  17. end
  18. end
  19.  
  20. for k, v in pairs(winners) do
  21. print(v:Name().." has just captured a point.")
  22. end;
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment