Raised This Month: $ Target: $400
 0% 

Kills


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zombieplague
Veteran Member
Join Date: Apr 2009
Old 07-02-2010 , 10:41   Re: Kills
Reply With Quote #9

Quote:
Originally Posted by grimvh2 View Post
1# ive seen worse
2# what if he just wants an example?

PHP Code:
#include <amxmodx>
#include <hamsandwich>
 
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Grim"
 
new Kills[33]
 
public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
 
    
RegisterHam(Ham_Killed"player""FwdPlayerKilled")
    
RegisterHam(Ham_Spawn"player""FwdPlayerSpawn"1)
}
 
 
public 
FwdPlayerKilled(victimattacker)
{
    if(
is_user_alive(attacker) && victim != attacker)
    {
        
Kills[attacker]++
 
        if(
Kills[attacker] == 3)
        {
            
client_print(attackerprint_chat"You have killed 3 guys in a row.")
        }
    }
}
 
public 
FwdPlayerSpawn(id)
{
    
Kills[id]=0

It didn't work
zombieplague is offline
 



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 14:50.


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