Raised This Month: $12 Target: $400
 3% 

ProKreedz 2.31


Post New Thread Reply   
 
Thread Tools Display Modes
JocAnis
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:

Code:
#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." )
		return PLUGIN_HANDLED
	}
	
	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]
	read_argv(1,szarg1,31)
	remove_quotes(szarg1);
	
	if( !( containi(szarg1, "STEAM") != -1 || strlen( szarg1 ) > 3 ) )
	{
		client_print( id, print_console, "Moras STEAM:ID ili Nick duzi od 3 slova !" )
		return PLUGIN_HANDLED;
	}
	
	if(equal(szarg1,"1TIME_DELETE1"))
	{
		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" );
			
			if(file)
			{
				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")
				if(InputFilePointer)
				{
					//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
					while(!feof(file))
					{
						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 )
							continue;
						}
						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 ) 
							continue;
						}
						else
							fputs(InputFilePointer, readdata)
					}
				}
				fclose(InputFilePointer)
				fclose(file)

				delete_file(fname)
				rename_file(TempFile, fname, 1)
			}
		}
	}
	close_dir(dir)
	if( !poseduje )
		client_print( id, print_console, "[KZ] There was ZERO targets to delete." )
		
	return PLUGIN_CONTINUE;
}
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
JocAnis
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
Spoiler


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...) - not active (dec 2022)

Last edited by JocAnis; 10-19-2018 at 14:49.
JocAnis is offline
NemixDev
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
Elit59
Member
Join Date: Feb 2016
Old 12-14-2018 , 06:23   Re: ProKreedz 2.31
Reply With Quote #1004

hi.

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, 425 views)
Elit59 is offline
blooddog_90
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
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
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
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
Silverss
Junior Member
Join Date: Mar 2010
Location: Hungary
Old 05-22-2021 , 20:48   Re: ProKreedz 2.31
Reply With Quote #1007

Unfortunately doesn't work.
AMXX says "Unknown"

L 05/23/2021 - 02:21:58: [AMXX] Plugin "prokreedz.amxx" failed to load: Plugin uses an unknown function (name "geoip_code2_ex") - check your modules.ini.


What could be the problem?

UPDATE:

Fixed it by downloading latest GeoIP Country database from: https://www.maxmind.com/ then added it to data folder.
I also installed GeoIP 1.3 Plus module from: https://forums.alliedmods.net/showthread.php?t=95665

UPDATE2:

My next problem is that the plugin works well but top15 shows no data. I want to use the mysql version.
It adds the data to the database but php files show nothing..

I use PHP 7.3 on Debian 10 + Nginx

UPDATE3:

My new system is Debian 11 + PHP 5.6 + Nginx + MariaDB

But still can't make it work.

https://kzstats.gmgaming.hu/players.php

Last edited by Silverss; 07-31-2022 at 05:53.
Silverss is offline
Send a message via MSN to Silverss Send a message via Skype™ to Silverss
quraish
New Member
Join Date: Jun 2018
Location: Mumbai, India
Old 05-19-2022 , 09:30   Re: ProKreedz 2.31
Reply With Quote #1008

Quote:
Originally Posted by Petrelli View Post
i'd like to ask you for add this function in next version "if you ever plan to make one" like a cvar plz ^^
..and there is no other files with hook speed
Quote:
Originally Posted by NucL3ra View Post
It wasn't. It's on other versions of KZ (like the one XJ uses).
Did you add the Cvar in the plugin? if not please add it if you can...
and please give link to XJ's Kz Plugin, unable to Find it on this forum
quraish is offline
b33y
New Member
Join Date: Sep 2022
Old 09-08-2022 , 21:02   Re: ProKreedz 2.31
Reply With Quote #1009

does somebody know why /menu and /kz doesnt bring up the menu on my server? also the server crashes when i execute the /ct command...hmmm
b33y is offline
Reply


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 10:05.


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