Raised This Month: $ Target: $400
 0% 

Kills


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 06-24-2010 , 11:41   Re: Kills
Reply With Quote #1

Quote:
Originally Posted by 5c0r-|3i0 View Post
Fine..I just want you to code by yourself
PHP Code:
 
#include <amxmodx>
#include <amxmisc>
 
new g_killstreak[33]
 
public 
plugin_init()
{
register_plugin("Your name","your version" ,"not me")
register_event("DeathMsg","player_killed","b","1>0")
register_event("HLTV""event_newround""a""1=0""2=0")
}
 
public 
player_killed() {
 
new 
victim read_data(1)
new 
attacker read_data(2)
 
if(
g_killstreak[attacker] < 3)
{
g_killstreak[attacker]++
 
client_print(attacker,print_chat,"[Test] Current killstreak is %d",g_killstreak[attacker])
}
else
{
// do something :d then reset g_kilstreak[attacker] to 0 if u want :D
}
g_killstreak[victim] = 0
 
}
 
public 
event_newround()
{
arrayset g_killstreak 33)
client_print(0,print_center,"[testing]...")

1) Not tested
2) I just made it quick , gotta sleep 4now :d .
alot of error.
zombieplague 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 14:50.


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