View Single Post
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 02-27-2014 , 09:46   Re: [Help] Block Kill Frag ?
Reply With Quote #7

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("Block Kill Frag","0.0.1","SmileY");

    
register_event("DeathMsg","Ev_DeathMsg","a");
}

public 
Ev_DeathMsg()
{
    new 
iKiller read_data(1);
    new 
iFrags get_user_frags(iKiller);

    if(
iFrags 0set_user_frags(iKiller,--iFrags); 

Ps. Not otimized
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 02-27-2014 at 09:48. Reason: --
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY