Raised This Month: $ Target: $400
 0% 

First Kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Trickzz
Member
Join Date: Jun 2011
Old 06-15-2011 , 12:53   Re: First Kill
Reply With Quote #1

like this?

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

#define PLUGIN "First Kill"
#define VERSION "1.0"
#define AUTHOR "AUTHOR"

new bool:FirstKill true;  

public 
plugin_init() 
{
        
register_plugin(PLUGINVERSIONAUTHOR)
        
RegisterHam(Ham_Killed"player""fw_PlayerKilled");           
}

public 
fw_PlayerKilled(victimattackershouldgib)  
}
        if(
FirstKill) { FirstKill false; }

Trickzz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-15-2011 , 13:13   Re: First Kill
Reply With Quote #2

And reset the boolean at new round event.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Trickzz
Member
Join Date: Jun 2011
Old 06-15-2011 , 14:16   Re: First Kill
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
And reset the boolean at new round event.
Respected ConnorMcLeod, but how to do that restart occurs every new round?
Trickzz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-15-2011 , 14:34   Re: First Kill
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
http://forums.alliedmods.net/showthread.php?t=42159

Everybody here should have this thread bookmarked.
__________________
fysiks is online now
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 23:33.


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