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

block client "status" cmd / set fake team to hltv


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-21-2008 , 18:21   block client "status" cmd / set fake team to hltv
Reply With Quote #1

hi guys,

2 questions:

- is it possible to block client "status" cmd? i think it is client side and canīt be blocked
- set a fake team to hltv (hltv not spec)? move a connected hltv to t or ct

thx
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.

Last edited by |PJ| Shorty; 10-21-2008 at 18:52.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 10-21-2008 , 20:17   Re: block client "status" cmd / set fake team to hltv
Reply With Quote #2

1. No - I believe HLDS command, anyway cant be overrided by amxmodx.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 10-21-2008 , 21:24   Re: block client "status" cmd / set fake team to hltv
Reply With Quote #3

Quote:
Originally Posted by Sn!ff3r View Post
1. No - I believe HLDS command, anyway cant be overrided by amxmodx.
Not true. Most native HL Server commands can be overriden by AMXX. Although, I think status fits into the client command categorie, if i'm not mistaken. Just try registering it through register_clcmd and see if it works.
danielkza is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-22-2008 , 07:06   Re: block client "status" cmd / set fake team to hltv
Reply With Quote #4

i know that you can block some client commands like "kill" (seen in a plugin).
made some test plugins but the status command seems not blockable.

maybe someone knows how that can be done.
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
platEE
Member
Join Date: Jul 2008
Location: Finland, Kuopio
Old 10-22-2008 , 07:14   Re: block client "status" cmd / set fake team to hltv
Reply With Quote #5

... Too simple

PHP Code:
#include <amxmodx>

#define PLUGIN "Block Status"
#define VERSION "1.0"
#define AUTHOR "platEE"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("Status""cmdStatus");
}

public 
cmdStatus()
{
    return 
PLUGIN_HANDLED;

__________________
ALWAYS leave your name when giving +Karma
platEE is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-22-2008 , 07:29   Re: block client "status" cmd / set fake team to hltv
Reply With Quote #6

Eh ?! o.0 is not working, platEE.

@|PJ| Shorty - You can't block the kill command, but kill event.Is handled by fakemeta, but not as a command.You can't block 'status' command.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
platEE
Member
Join Date: Jul 2008
Location: Finland, Kuopio
Old 10-22-2008 , 07:31   Re: block client "status" cmd / set fake team to hltv
Reply With Quote #7

Okay, I can block "kill" command like that
__________________
ALWAYS leave your name when giving +Karma
platEE is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-22-2008 , 07:37   Re: block client "status" cmd / set fake team to hltv
Reply With Quote #8

@platEE

this is not working for sure ^^

@alka

thanks, now iīm sure itīs not possible... you are right, itīs the event, my mistake.
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-22-2008 , 07:50   Re: block client "status" cmd / set fake team to hltv
Reply With Quote #9

will this work ? (kill)
PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init() {
    
register_plugin("Block Kill Command""1.0""xPaw");
    
register_forward(FM_ClientKill"fwdClientKill");
}

public 
fwdClientKill(id) {
    if(!
is_user_alive(id))
        return 
FMRES_IGNORED;

    
client_print(idprint_chat"[AMXX] You can't kill yourself!");
    
client_print(idprint_console"[AMXX] You can't kill yourself!");
    return 
FMRES_SUPERCEDE;

__________________
xPaw is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 10-22-2008 , 12:38   Re: block client "status" cmd / set fake team to hltv
Reply With Quote #10

yes this should work.

there is already a "kill block" plugin who useses the same code...
http://forums.alliedmods.net/showthread.php?t=71212
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Reply



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 17:18.


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