Raised This Month: $ Target: $400
 0% 

show_hudmessage help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
P1raten
Senior Member
Join Date: Feb 2010
Old 06-09-2010 , 14:17   show_hudmessage help
Reply With Quote #1

Why doesnt that work?
Code:
show_hudmessage( 0, "Combo:" g_multiKills[0] )
And how do i make so that only the player sees the hudmessage?
__________________
No salvation. Only madness.
P1raten is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-09-2010 , 14:35   Re: show_hudmessage help
Reply With Quote #2

PHP Code:
show_hudmessageid"Combo: %i"g_multiKills[0] ) 
id is the index of the player you want to show it to.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
P1raten
Senior Member
Join Date: Feb 2010
Old 06-09-2010 , 15:10   Re: show_hudmessage help
Reply With Quote #3

Cant figure out whats wrong here:

PHP Code:
#include <amxmodx>

#define VERSION        "1"

new bunnies

public plugin_init()
{
    
register_plugin("Bunnies"VERSION"P1raten")
}

public 
client_death(killervictimwpnindexhitplaceTK//Dont bother these.
{
    
bunnies++
    
set_hudmessage2001000, -1.00.301.05.00.10.2)
    
show_hudmessagekiller"Bunnies:"bunnies )

__________________
No salvation. Only madness.
P1raten is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-09-2010 , 15:32   Re: show_hudmessage help
Reply With Quote #4

PHP Code:
 show_hudmessage(killer"bunnies:"bunnies

PHP Code:
show_hudmessage(killer"bunnies: %i"bunnies
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
P1raten
Senior Member
Join Date: Feb 2010
Old 06-09-2010 , 16:05   Re: show_hudmessage help
Reply With Quote #5

Is it possible to make the bunnies variable reset every round and be unique for each player?
__________________
No salvation. Only madness.
P1raten is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-09-2010 , 16:09   Re: show_hudmessage help
Reply With Quote #6

Make an array. One cell for each player.

bunnies[33]

Then use it like: bunnies[killer]
Reset it for everybody when the new round starts or how ever/when ever you want.
__________________
fysiks is offline
P1raten
Senior Member
Join Date: Feb 2010
Old 06-09-2010 , 16:38   Re: show_hudmessage help
Reply With Quote #7

I dont know HOW to reset it every round.
__________________
No salvation. Only madness.
P1raten is offline
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 06-09-2010 , 17:40   Re: show_hudmessage help
Reply With Quote #8

put this
PHP Code:
register_logevent"event_roundstart"2"0=World triggered""1=Round_Start" 
in plugin_init and then add
PHP Code:
public event_roundstart(id
{
    
bunnies[id] = 0

at the bottom.
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME
r4ndomz is offline
Send a message via Skype™ to r4ndomz
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-09-2010 , 18:23   Re: show_hudmessage help
Reply With Quote #9

Quote:
Originally Posted by r4ndomz View Post
put this
PHP Code:
register_logevent"event_roundstart"2"0=World triggered""1=Round_Start" 
in plugin_init and then add
PHP Code:
public event_roundstart(id
{
    
bunnies[id] = 0

at the bottom.
No id is passed to that function btw. You have to loop through all players (or all indices of the array).

I've also never seen someone put "World triggered" in the filtering.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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 05:20.


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