View Single Post
chundo
Senior Member
Join Date: May 2008
Old 06-01-2008 , 00:29   Re: Medic farming plugin
Reply With Quote #19

In OnPluginStart:
Code:
HookEvent("player_death", Event_PlayerDeath, EventHookMode_Pre);
Event_PlayerDeath function:
Code:
public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) {
    SetEventInt(event, "revenge", 1);
    return Plugin_Continue;
}
The downside of this is that every time you kill or get killed, you hear the revenge sound. It gets old quick.

Last edited by chundo; 06-01-2008 at 00:32.
chundo is offline