Raised This Month: $32 Target: $400
 8% 

Spectate Hop for Money Prevention


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-24-2011 , 01:56   Re: Spectate Hop for Money Prevention
Reply With Quote #41

Quote:
Originally Posted by TnTSCS View Post
I'll load it up and give it a shot... I'll report back here if I find issues
I assume now, those errors come when player go team and back spec,
then he stay that time "mp_roundtime" (it create timer with mp_roundtime interval)
Now if timer have expired, player re-connect or map change it throw that killtimer error.
Becouse when timer ends, it not "erase" Handle:player spectimer. It try kill timer what not exist anymore.


So add this in timer callback (SpecTimer[client] = INVALID_HANDLE;) should fix it.
PHP Code:
public Action:SpecTimerDone(Handle:timer,any:client){
    
PlayerSpec[client] = false;
    
SpecTimer[client] = INVALID_HANDLE;

Bacardi is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 05-18-2011 , 11:33   Re: Spectate Hop for Money Prevention
Reply With Quote #42

okay, I'll add SpecTimer[client] = INVALID_HANDLE; to the public Action:SpecTimerDone

and recompile and see if the errors go away.

I'll preemptively say, "Thank you!!" for this fix
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 05-18-2011 , 12:34   Re: Spectate Hop for Money Prevention
Reply With Quote #43

I'll have to wait until the server populates to see if those errors pop up... so far, with just me testing going to spec and back, no error.

One thing I notice is that the cvars in spechop.cfg (cstrike/cfg/sourcemod) are not loading. ...:: EDIT ::... It load only after the first map change::::::

Another thing, I think it would be better to execute the setplayerscash on a jointeam event instead of spawn.

Using PlayerSpawn causes the player to not get the team cash. If I have it set to preserve the players cash, and they had $450, when they spawn, their team will have $2000+, but this guy will only have $450 because the action is taken on PlayerSpawn instead of a join team.

Last edited by TnTSCS; 05-18-2011 at 12:42.
TnTSCS is offline
Lukas320
Member
Join Date: Jan 2011
Old 06-16-2012 , 16:23   Re: Spectate Hop for Money Prevention
Reply With Quote #44

I think i have the same error

Code:
L 06/15/2012 - 03:00:19: SourceMod error session started
L 06/15/2012 - 03:00:19: Info (map "de_aztec") (file "errors_20120615.log")
L 06/15/2012 - 03:00:19: [SM] Native "KillTimer" reported: Invalid timer handle 717f0288 (error 1)
L 06/15/2012 - 03:00:19: [SM] Displaying call stack trace for plugin "specmoney.smx":
L 06/15/2012 - 03:00:19: [SM]   [0]  Line 174, /home/groups/alliedmodders/forums/files/2/1/2/27914.attach::OnClientAuthorized()
L 06/15/2012 - 03:12:57: [SM] Native "KillTimer" reported: Invalid timer handle 717f0288 (error 3)
L 06/15/2012 - 03:12:57: [SM] Displaying call stack trace for plugin "specmoney.smx":
L 06/15/2012 - 03:12:57: [SM]   [0]  Line 151, /home/groups/alliedmodders/forums/files/2/1/2/27914.attach::OnMapEnd()
L 06/15/2012 - 03:12:58: Error log file session closed.
and a bigger one

Code:
L 06/15/2012 - 03:12:58: SourceMod error session started
L 06/15/2012 - 03:12:58: Info (map "aim_ag_texture_city_advanced") (file "errors_20120615.log")
L 06/15/2012 - 03:12:58: [SM] Native "KillTimer" reported: Invalid timer handle 717f0288 (error 3)
L 06/15/2012 - 03:12:58: [SM] Displaying call stack trace for plugin "specmoney.smx":
L 06/15/2012 - 03:12:58: [SM]   [0]  Line 164, /home/groups/alliedmodders/forums/files/2/1/2/27914.attach::OnMapStart()
L 06/15/2012 - 03:14:07: [SM] Native "KillTimer" reported: Invalid timer handle 717f0288 (error 1)
L 06/15/2012 - 03:14:07: [SM] Displaying call stack trace for plugin "specmoney.smx":
L 06/15/2012 - 03:14:07: [SM]   [0]  Line 174, /home/groups/alliedmodders/forums/files/2/1/2/27914.attach::OnClientAuthorized()
L 06/15/2012 - 03:15:19: [SM] Native "KillTimer" reported: Invalid timer handle 717f0288 (error 1)
L 06/15/2012 - 03:15:19: [SM] Displaying call stack trace for plugin "specmoney.smx":
L 06/15/2012 - 03:15:19: [SM]   [0]  Line 174, /home/groups/alliedmodders/forums/files/2/1/2/27914.attach::OnClientAuthorized()
L 06/15/2012 - 03:18:58: [SM] Native "KillTimer" reported: Invalid timer handle 717f0288 (error 1)
L 06/15/2012 - 03:18:58: [SM] Displaying call stack trace for plugin "specmoney.smx":
L 06/15/2012 - 03:18:58: [SM]   [0]  Line 174, /home/groups/alliedmodders/forums/files/2/1/2/27914.attach::OnClientAuthorized()
L 06/15/2012 - 03:25:26: [SM] Native "KillTimer" reported: Invalid timer handle 717f0288 (error 3)
L 06/15/2012 - 03:25:26: [SM] Displaying call stack trace for plugin "specmoney.smx":
L 06/15/2012 - 03:25:26: [SM]   [0]  Line 174, /home/groups/alliedmodders/forums/files/2/1/2/27914.attach::OnClientAuthorized()
L 06/15/2012 - 04:05:33: [SM] Native "KillTimer" reported: Invalid timer handle 717f0288 (error 3)
L 06/15/2012 - 04:05:33: [SM] Displaying call stack trace for plugin "specmoney.smx":
L 06/15/2012 - 04:05:33: [SM]   [0]  Line 151, /home/groups/alliedmodders/forums/files/2/1/2/27914.attach::OnMapEnd()
L 06/15/2012 - 04:05:33: Error log file session closed.
I want this error to get fixed as i'm trying to get my server error free right now , could anyone help me? I got high population on my server 20+ ppl everyday..

Thanks !
Lukas320 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 06-16-2012 , 22:22   Re: Spectate Hop for Money Prevention
Reply With Quote #45

give this one a whirl:

https://forums.alliedmods.net/showthread.php?p=1474477
__________________
View my Plugins | Donate
TnTSCS 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 21:25.


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