Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- public Plugin:myinfo =
- {
- name = "Snow",
- author = "Patrcik",
- description = "My first plugin ever",
- version = "1.0.0.0",
- url = "http://www.sourcemod.net/"
- }
- public OnPluginStart()
- {
- HookEvent("player_death", Event_PlayerDeath)
- }
- public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
- {
- new victim_id = GetEventInt(event, "userid")
- new victim = GetClientOfUserId(victim_id)
- if (GetRandomInt(1,5) > 0);
- {
- native GetClientAbsOrigin(victim, Float:vec[3]);
- native TF2_AddCondition(picker, TFCond:TF_Ubercharged, Float:5);
- }
- }
- public Action:OnClientTouch(item_healthkit)
- {
- native TF2_AddCondition(picker, TFCond:TF_Ubercharged, Float:5);
- forward TF2_OnConditionRemoved(picker, TFCond:TFCOND_OnFire);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement