|
Author
|
Message
|
|
Veteran Member
Join Date: Feb 2013
Location: Rromania
|

06-18-2017
, 12:13
Re: Fix round win duplication exploit (money buy on dust2 and others)
|
#1
|
Quote:
Originally Posted by edon1337
Then call it just once.
Code:
#include <amxmodx>
new bool:g_bHasBeenCalled ;
public plugin_init() {
register_event("SendAudio", "eT_win" , "a", "2&%!MRAD_terwin");
register_event("HLTV", "OnNewRound", "a", "1=0", "2=0")
}
public eT_win() {
if( ! g_bHasBeenCalled ) {
client_print(0, print_chat, "%d t_win called", g_count)
g_bHasBeenCalled = true ;
}
}
public OnNewRound() {
g_bHasBeenCalled = false ;
}
|
doesn't solve the money problem though
Quote:
Originally Posted by Natsheh
PHP Code:
#include <infinite_round>
new Float:g_gametime;
public OnRoundEnd( const RoundEndType:type ) { if(type == RoundEndTypes_Team) { if(g_gametime >= get_gametime() - 2.0) { return PLUGIN_HANDLED; } g_gametime = get_gametime(); } return 0; }
Here if you are using amx version 1.8.2 you must follow the instructions & download arkshine infinite round plugin
https://forums.alliedmods.net/showthread.php?t=117782
This plugin checks if ct or ts win is called twice or more and block it.
|
this requires Orpheu though, and I need this to work without it
__________________
Meanwhile, in 2050:
Quote:
|
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
|
|
Last edited by aron9forever; 06-18-2017 at 12:14.
|
|
|
|