Raised This Month: $51 Target: $400
 12% 

Needed help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
combocarte112
Senior Member
Join Date: Jun 2016
Location: Romania
Old 01-08-2017 , 17:12   Needed help.
Reply With Quote #1

Hello, i need a plugin. When kill an CT, you receive 3 frags, no 1.
Thanks.
combocarte112 is offline
Send a message via Skype™ to combocarte112
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-08-2017 , 17:16   Re: Needed help.
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("DeathMsg","clientDeath","a")
}
public 
clientDeath()
{
    new 
iKiller read_data(1)
    new 
iVictim read_data(2)
    
    if(
iKiller != iVictim && get_user_team(iKiller) != get_user_team(iVictim))
    {
        
set_user_frags(iKiller,get_user_frags(iKiller) + 2)
    }

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode