check prefix of fps_max or any other command
Hey like 2 months ago you helped me with the fps_max checking but now some players found another way to increase their fps using third-party programms/cheats which uses prefixes
So i use this code from: https://forums.alliedmods.net/showthread.php?t=330652 but also i need to check if player type in console any prefix like: xxxfps_max "value" ks12_fps_max "value" because as far i know the command always ends at fps_max so everything before it is a cheat command PHP Code:
|
Re: check prefix of fps_max or any other command
|
Re: check prefix of fps_max or any other command
But code i put here is kinda better, Bugsy helped me with it
i need to check if someone type fps_max with any prefix in console |
Re: check prefix of fps_max or any other command
Are you sure their external cmds are possible to hook in .sma? They have option to print their value of fps_max as 99.5 but they are obviously using more fps ingame
|
Re: check prefix of fps_max or any other command
I'm sure that you can't check their external commands values, but it's possible to check if someone type in console any text or any command even if it's not the cs command. There are some anticheats which are checking cheats commands, the problem is when people can make their own prefixes.
but as i said as far i know what cheat some ppl use on my server they can make their own prefix but can't change the whole command so every prefix before fps_max even if it's one char like ffps_max/4fps_max is illegal that's why i need to know how to check if someone write command (especially fps_max) with prefix |
Re: check prefix of fps_max or any other command
Code:
#include < amxmodx > |
Re: check prefix of fps_max or any other command
The ternary operator is not intended to be used that way and it makes your code hard to read. Please stop trying to be "fancy" with your code and use normal if/else statements and add a new line even if the "then" part is only a single line. Especially in Scripting Help.
|
Re: check prefix of fps_max or any other command
Quote:
I didn't test it but i think it will catch everyone who type any command with "fps" in it's name so it can't work this way Maybe make an exclude for fps_max only? I don't want to block legal commands for people. |
Re: check prefix of fps_max or any other command
parse it, check if first arg is equal to 'name' and continue..
|
Re: check prefix of fps_max or any other command
ANyway, LondoN's code isn't working;/
|
All times are GMT -4. The time now is 15:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.