Raised This Month: $ Target: $400
 0% 

#include <dhudmessage>


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Golden Fredy
Junior Member
Join Date: Sep 2015
Old 09-30-2015 , 15:53   #include <dhudmessage>
Reply With Quote #1

When I use the #include <dhudmessage> at some plugin and after conpilar my server cs kicks the player and then closes, please help.
Golden Fredy is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 09-30-2015 , 16:11   Re: #include <dhudmessage>
Reply With Quote #2

Quote:
Originally Posted by Golden Fredy View Post
When I use the #include <dhudmessage> at some plugin and after conpilar my server cs kicks the player and then closes, please help.
EDIT:
was to me same problem: cs crash or overflow.

try to delete the include and check if again cs crash
or just give our all set_task of show_hudmessage / set_hudmessage

Last edited by Fuck For Fun; 09-30-2015 at 17:48.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-30-2015 , 16:18   Re: #include <dhudmessage>
Reply With Quote #3

Quote:
Originally Posted by Golden Fredy View Post
When I use the #include <dhudmessage> at some plugin and after conpilar my server cs kicks the player and then closes, please help.
What do you want us to do? Just remove the plugin.

Quote:
Originally Posted by Fuck For Fun View Post
i think i have same problem: cs crash or overflow

well try to delete it the include and upload to server the plugin without of the include

give our all set_task of show_hudmessage / set_hudmessage
What?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Golden Fredy
Junior Member
Join Date: Sep 2015
Old 09-30-2015 , 16:36   Re: #include <dhudmessage>
Reply With Quote #4

I would love to make it work with dhudmessage.

#include <amxmodx>
#include <amxmisc>

#define VERSION "1.3"

new CTScore, TerrScore
new rounds_elapsed
new g_maxplayers

public plugin_init()
{
register_plugin("TeamScore on HUD", "1.0", "XXXX")
register_event("TeamScore", "ct_score", "a", "1=CT")
register_event("TeamScore", "terr_score", "a", "1=TERRORIST")
register_event("HLTV", "new_round", "a", "1=0", "2=0")
register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in")
g_maxplayers = get_maxplayers()

show_scores()
}

public new_round()
{
rounds_elapsed += 1
}

public restart_round()
{
rounds_elapsed = 0
}

public ct_score()
{
CTScore = read_data(2)
}

public terr_score()
{
TerrScore = read_data(2)
}

public show_scores()
{
set_hudmessage( 0, 255, 0, -1.0, 0.0, _,_, 2.0,_,_, -1 )
show_hudmessage(0, "PLACAR ^nCT %i| Round %d |%i TR", CTScore, rounds_elapsed, TerrScore, g_maxplayers)

set_task(2.0, "show_scores")
}

Last edited by Golden Fredy; 09-30-2015 at 16:38.
Golden Fredy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-01-2015 , 12:22   Re: #include <dhudmessage>
Reply With Quote #5

If you're using AMXX 1.8.3, you shouldn't include dhudmessage in the code.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Hartmann
Senior Member
Join Date: Nov 2014
Old 10-01-2015 , 16:57   Re: #include <dhudmessage>
Reply With Quote #6

@Golden Fredy

Put code in:

HTML Code:
[CODE][/CODE]
or

HTML Code:
[PHP][/PHP]
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann 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 09:41.


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