Raised This Month: $ Target: $400
 0% 

Only on first kill


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 05-18-2010 , 15:33   Only on first kill
Reply With Quote #1

How to detect if Survivor killed a hunter first time and the survivor gets a achieviment , but only when first time , and save if that player has an achieviment

PHP Code:
public plugin_init()
{
        
register_event("DeathMsg""event_deathmsg3""a")
}

public 
event_deathmsg3(id)
{
        new 
victim read_data(2)
        new 
attacker read_data(1)

        if(
get_user_team(victim) == CS_TEAM_T && InfectedClass[victim] == 0)
        {
                
set_hudmessage(25500, -1.00.5500.02.02.01.0, -1);
                
ShowSyncHudMsg(attacker"[L4D]: You gained a hunter killer achieviment!");

                
HunterAchieviment[attacker] = true;
        }

DoviuX is offline
Send a message via Skype™ to DoviuX
 



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 03:46.


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