Advertisement
Guest User

Untitled

a guest
Apr 25th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3.  
  4. public Plugin:myinfo =
  5. {
  6. name = "Snow",
  7. author = "Patrcik",
  8. description = "My first plugin ever",
  9. version = "1.0.0.0",
  10. url = "http://www.sourcemod.net/"
  11. }
  12.  
  13. public OnPluginStart()
  14. {
  15.  
  16. HookEvent("player_death", Event_PlayerDeath)
  17. }
  18.  
  19. public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
  20. {
  21. new victim_id = GetEventInt(event, "userid")
  22. new victim = GetClientOfUserId(victim_id)
  23.  
  24. if (GetRandomInt(1,5) > 0);
  25.  
  26. {
  27. native GetClientAbsOrigin(victim, Float:vec[3]);
  28. native TF2_AddCondition(picker, TFCond:TF_Ubercharged, Float:5);
  29. }
  30. }
  31.  
  32. public Action:OnClientTouch(item_healthkit)
  33.  
  34. {
  35. native TF2_AddCondition(picker, TFCond:TF_Ubercharged, Float:5);
  36. forward TF2_OnConditionRemoved(picker, TFCond:TFCOND_OnFire);
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement