Want to block two console commands but i can't! (force_centerview & centerview)
Hi, i play team fortress classic 1.6, and in this game these two commands are ilegal, so i want to block them.
I tried some CVAR and command blockers but didn't work so i decided to make my own plugin... Basically when these two commands are executed i want to kick the user, but the plugin doesn't work and it's seem to be all ok... Here is the code: Code:
#include <amxmodx>Thanks! |
Re: Want to block two console commands but i can't! (force_centerview & centerview)
They are likely never sent to the server. Therefore you can't detect them [this way].
|
Re: Want to block two console commands but i can't! (force_centerview & centerview)
thanks for reply!
yup, seems that they are not sent to server.. so.. is there any chance to block them in another way? |
Re: Want to block two console commands but i can't! (force_centerview & centerview)
Maybe.
You forgot to kick the player in your function. |
Re: Want to block two console commands but i can't! (force_centerview & centerview)
yeap but i can't see the message so is the same, isn't calling the function because the command don't send anything to server
|
Re: Want to block two console commands but i can't! (force_centerview & centerview)
What do these commands do?
|
Re: Want to block two console commands but i can't! (force_centerview & centerview)
force_centerview // forces the player's view to look straight ahead
centerview // centers the players view There is a concussion grenade in the game that dizzy you (? so the crosshair start to moving like you are confused, so with this commands you can know where is the crosshair(in the center of the screen)... |
Re: Want to block two console commands but i can't! (force_centerview & centerview)
PHP Code:
|
Re: Want to block two console commands but i can't! (force_centerview & centerview)
Quote:
|
Re: Want to block two console commands but i can't! (force_centerview & centerview)
Quote:
Quote:
|
| All times are GMT -4. The time now is 08:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.