Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Kill Counters.


Post New Thread Reply   
 
Thread Tools Display Modes
Zoeylicious
Member
Join Date: Oct 2010
Old 11-23-2010 , 15:27   Re: [L4D & L4D2] Kill Counters.
Reply With Quote #41

hello

yes the update is done I put the dernierre

it makes me that the plugin errors
Zoeylicious is offline
PAHE
Junior Member
Join Date: Nov 2010
Old 11-24-2010 , 03:25   Re: [L4D & L4D2] Kill Counters.
Reply With Quote #42

Hey you guys!!!

Im new to this forum and i just can say you ROCK ;)

My problem is that the sm_killcounter_ad_interval command doesnt work at all on my local server.

The information message about the function of the counter (advertisement) appears every 30 seconds no matter what i do. The console says its changed when i type sm_killcounter_ad_interval it shows the 120 seconds i entered.

Maybe its because im just hosting a local game i dont know about such things just wanted to ask you if you know an answer thx. ;D
PAHE is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-24-2010 , 07:45   Re: [L4D & L4D2] Kill Counters.
Reply With Quote #43

Thats because a repeating timer is being created OnMapStart() which displays every 30 seconds, until the map changes... a better way would be to create the timer again after it has finished, that then allows for a dynamic timer.

Zoeylicious it doesn't make sense that you're getting the same error.
__________________
Silvers is offline
PAHE
Junior Member
Join Date: Nov 2010
Old 11-24-2010 , 09:20   Re: [L4D & L4D2] Kill Counters.
Reply With Quote #44

Well thank you very much for the quick reply but i dont really know how to do that

Would you please give me the code for it ^^

Here is mine copied from the source file:

//Called when the map starts
public OnMapStart()
{
g_hTimer = CreateTimer(GetConVarFloat(g_hInterval), Timer_DisplayAds, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
}
public OnMapEnd()
{
if(g_hTimer != INVALID_HANDLE)
if(CloseHandle(g_hTimer))
g_hTimer = INVALID_HANDLE;
}
PAHE is offline
PAHE
Junior Member
Join Date: Nov 2010
Old 11-24-2010 , 11:27   Re: [L4D & L4D2] Kill Counters.
Reply With Quote #45

Ok lol i added a wrong information and deleted it her is the right one:

I fixed the problem by changing the string

g_hInterval = CreateConVar("sm_killcounter_ad_interval", "30.0", "Amount of seconds between advertisements.", FCVAR_NONE, true, 0.0);

for the advertisement in the .sp file in my scripts folder

to

g_hInterval = CreateConVar("sm_killcounter_ad_interval", "120", "Amount of seconds between advertisements.", FCVAR_NONE, true, 0.0);

and it works just fine. I just had to compile the .sp file to an .smx format.

I dont know if it helps other people who want the sm_killcounter_ad_interval "" string to work the way it should but its enough for me^^

Thx again and HAVE NICE DAY ;)
PAHE is offline
nakashimakun
Senior Member
Join Date: Feb 2010
Location: England
Old 11-24-2010 , 12:03   Re: [L4D & L4D2] Kill Counters.
Reply With Quote #46

It must be for local servers that it errors like that PAHE but for my dedicated servers ran by my community it works fine as a changable number. I'll have a look into it tho. and with zoeylicious's problem im still looking into it im not sure the reason of its error... I sorted the arrary to work properly so I don't understand why its still erroring.
nakashimakun is offline
Zoeylicious
Member
Join Date: Oct 2010
Old 11-25-2010 , 02:14   Re: [L4D & L4D2] Kill Counters.
Reply With Quote #47

hello nakashimakun

How to Disable your message??

thank you
Zoeylicious is offline
nakashimakun
Senior Member
Join Date: Feb 2010
Location: England
Old 11-25-2010 , 12:07   Re: [L4D & L4D2] Kill Counters.
Reply With Quote #48

The advertisement?

Try setting it to 0 if that doesn't work I'll add a feature to disable it.
nakashimakun is offline
Zoeylicious
Member
Join Date: Oct 2010
Old 11-25-2010 , 18:16   Re: [L4D & L4D2] Kill Counters.
Reply With Quote #49

hello
I try to disable the message put 0 it does not work

can you post a function to disable the message thank you
Zoeylicious is offline
nakashimakun
Senior Member
Join Date: Feb 2010
Location: England
Old 11-26-2010 , 12:24   Re: [L4D & L4D2] Kill Counters.
Reply With Quote #50

Okay I'll add it in a post a new version but it will still have a array error as im unsure on how to fix it.
nakashimakun 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 07:57.


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