Raised This Month: $1951 Target: $400

ProKreedz 2.31

Post New Thread Reply   
Thread Tools Display Modes
Veteran Member
Join Date: Jun 2010
Old 09-17-2018 , 18:16   Re: ProKreedz 2.31
Reply With Quote #1001

if anyone uses non-sql version of this plugin, and got a lot of cheaters/badtime in tops, but he is lazy to delete all them seperately, here is the code to delete ALL RECORDS BY NICK (containing characters, min. 3) or to delete bugged time (like 00:01.xx; 00:02.xx), cuz this plugin has that problem
here is the code...use: kz_delete_rec Nick/Steamid/1TIME_DELETE1 (this last one will delete all records under 3 in every file in /configs/top15/...thats it i think this addon:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Delete ProKreedz REC"
#define VERSION "1.0"
#define AUTHOR "alliedmods"

new mapname[100]
new bool: poseduje
new bool: time_delete

public plugin_init() 
	register_plugin(PLUGIN, VERSION, AUTHOR)

	register_concmd( "kz_delete_rec", "uradjeno" )
public uradjeno(id)
	if( !is_user_admin( id ) )
		client_print( id, print_console, "You must be an admin to reset someone's record." )
	poseduje = false;
	new dir = open_dir("/addons/amxmodx/configs/kz/top15/", mapname, sizeof(mapname)-1)
	new file, fname[100]
	new readdata[128]
	new ptime[20],psteamid[40],pname[32],pdate[20]
	new szarg1[32]
	if( !( containi(szarg1, "STEAM") != -1 || strlen( szarg1 ) > 3 ) )
		client_print( id, print_console, "Moras STEAM:ID ili Nick duzi od 3 slova !" )
		time_delete = true
	if (dir)
		while (next_file(dir, mapname, sizeof(mapname)-1))
			formatex( fname, 99, "/addons/amxmodx/configs/kz/top15/%s", mapname )
			file = fopen( fname, "rt" );
				new TempFile[128]; get_configsdir(TempFile, charsmax(TempFile))
				new const FileName[] = "tempfile.ini"
				format(TempFile, charsmax(TempFile), "/addons/amxmodx/configs/kz/top15/%s", FileName)
				new InputFilePointer = fopen(TempFile, "wt")
					//client_print( id, print_console, "MapName^t^t^t^t^t^t^t^t- NICK^t^t^t^t- SteamID^n" ) //ponavlja se na svako brisanje rekorda, nije nesto potrebno
						fgets(file, readdata, charsmax(readdata))
						parse(readdata, ptime, charsmax(ptime), psteamid, charsmax(psteamid), pname, charsmax(pname), pdate, charsmax(pdate))
						if((containi(pname, szarg1) != -1 || containi( psteamid, szarg1 ) != -1) && !time_delete )
							poseduje = true;
							client_print( id, print_console, "%s - %s - %s - %s", mapname, pname, ptime, psteamid )
						else if( ( containi( ptime, "2." ) != -1 || containi( ptime, "1." ) != -1 || containi( ptime, "0." ) != -1 ) && time_delete && ( strlen( ptime ) == 4 )  )
							poseduje = true;
							time_delete = false
							client_print( id, print_console, "TIME_DEL: %s - %s - %s - %s", mapname, pname, ptime, psteamid ) 
							fputs(InputFilePointer, readdata)

				rename_file(TempFile, fname, 1)
	if( !poseduje )
		client_print( id, print_console, "[KZ] There was ZERO targets to delete." )
something like this will happen in admin's console (+time, its updated now):

Last edited by JocAnis; 09-17-2018 at 18:17.
JocAnis is offline
Veteran Member
Join Date: Jun 2010
Old 10-19-2018 , 14:46   Re: ProKreedz 2.31
Reply With Quote #1002

ok i saw big amount of kz servers use this plugin as main kz plugin, im posting a code which is fixing timer bug, added hook to all players on connect (no need to finish map, cuz its shitty) and redesigned pro15.

the main problem was timer-bug, executed as: start timer -> go /pause -> use /nc to go to the end (just touching the ground) -> go /spec -> go /ct -> and voila you are at your last origin, when you went with noclip in pause -> just press finish and you got your 00:01.22 time...
how it is fixed: /spec is blocked while in /pause

pro15 design: in my opinion its more simpler now, and more beautiful, here is the picture: https://i.imgur.com/YHTO500.jpg
*keep in mind, <html> code is still done in .sma not with .php..so buffer size is near the max lul

giving all the hook: other, bigger kz servers (with private plugin) has that option, and having it only when you finish the map is like outdated to me

if anyone wants to have the nub10 with the same theme as pro15, tell me and i will do that
*anything beside changes mentioned up arent touched in code
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...)

Last edited by JocAnis; 10-19-2018 at 14:49.
JocAnis is offline
New Member
Join Date: Nov 2018
Old 12-05-2018 , 08:22   Re: ProKreedz 2.31
Reply With Quote #1003

I setup sql and everything, when i uncommented #define USE_SQL, compiled, upload to server, server wont start at all...
NemixDev is offline
Junior Member
Join Date: Feb 2016
Old 12-14-2018 , 06:23   Re: ProKreedz 2.31
Reply With Quote #1004


how to fixed?

INFO: Custom URL redirection, but no location found.
Attached Images
File Type: jpg bandicam 2018-12-14 12-19-47-641.jpg (89.0 KB, 186 views)
Elit59 is offline
Junior Member
Join Date: Apr 2008
Old 07-27-2019 , 09:31   Re: ProKreedz 2.31
Reply With Quote #1005

This plugin is a "Unapproved/Old Plugin". Which kreedz plugin would be better then?
blooddog_90 is offline
Senior Member
Join Date: Jan 2016
Old 05-08-2020 , 11:24   Re: ProKreedz 2.31
Reply With Quote #1006

can someone change one thing when we type /noclip time should be pause not reset and when i disabled /noclip i will be spawn again at the same position from where i started noclip and my timer will unapause
Contact : Facebook
All Join -=}BBI{=- Hns Server :-
shehzad1234 is offline

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 15:53.

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