Advertisement
TheReduxPL

Untitled

Sep 7th, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #pragma semicolon 1
  2.  
  3. #include <sourcemod>
  4. #include <tf2>
  5. #include <tf2_stocks>
  6.  
  7. #include <tf2jail>
  8.  
  9. /**
  10. * Called when a last request is about to be executed.
  11. *
  12. * @param Handler String or text called by the Handler in the Last Request configuration file. (Use this to differentiate your custom LRs)
  13. * @noreturn
  14. **/
  15. public TF2Jail_OnLastRequestExecute(client, const String:Handler[])
  16. {
  17. if (StrEqual(Handler, "LR_SniperDuel"))
  18. {
  19. TF2_SetHealth(client, 450);
  20. TF2_SetPlayerClass(client, TFClass_Sniper);
  21. }
  22. }
  23.  
  24. stock TF2_SetHealth(client, NewHealth)
  25. {
  26. SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
  27. SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement