Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma semicolon 1
- #include <sourcemod>
- #include <tf2>
- #include <tf2_stocks>
- #include <tf2jail>
- /**
- * Called when a last request is about to be executed.
- *
- * @param Handler String or text called by the Handler in the Last Request configuration file. (Use this to differentiate your custom LRs)
- * @noreturn
- **/
- public TF2Jail_OnLastRequestExecute(client, const String:Handler[])
- {
- if (StrEqual(Handler, "LR_SniperDuel"))
- {
- TF2_SetHealth(client, 450);
- TF2_SetPlayerClass(client, TFClass_Sniper);
- }
- }
- stock TF2_SetHealth(client, NewHealth)
- {
- SetEntProp(client, Prop_Send, "m_iHealth", NewHealth, 1);
- SetEntProp(client, Prop_Data, "m_iHealth", NewHealth, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement