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

can i check out the command ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arvy
Member
Join Date: Oct 2007
Old 04-01-2008 , 05:25   can i check out the command ?
Reply With Quote #1

can i check the client command "exec & wait" ?
i don't want to player execute cfg in the game ,him how can i do ?
if someone execute a cfg file ,the server will kick him .

Last edited by Arvy; 04-01-2008 at 05:41.
Arvy is offline
Arvy
Member
Join Date: Oct 2007
Old 04-02-2008 , 03:12   Re: can i check out the command ?
Reply With Quote #2

does it work ? if not ,how should i do ?
Quote:
#include <amxmodx>
#include <amxmisc>

public client_command(id) {
new arg[16]
read_argv(0, arg, 15)
if(containi("exec", arg)!=-1 && get_user_team(id)!=-1) {
server_cmd("kick #%d", get_user_userid(id))
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
Arvy is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-02-2008 , 03:50   Re: can i check out the command ?
Reply With Quote #3

You can try hooking them with register_clcmd and block them with "return PLUGIN_HANDLED"
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Arvy
Member
Join Date: Oct 2007
Old 04-02-2008 , 04:15   Re: can i check out the command ?
Reply With Quote #4

v3x thank you ! i'll try it !
Arvy is offline
Arvy
Member
Join Date: Oct 2007
Old 04-04-2008 , 01:05   Re: can i check out the command ?
Reply With Quote #5

Quote:
#include <amxmodx>
#include <amxmisc>
public plugin_init(){
register_clcmd("exec", "BlockExec")
}
public BlockExec(id){
server_cmd("kick #%d", get_user_userid(id))
return PLUGIN_HANDLED
}
i tried it, but failed too
I wonder whether the command "exec" send to the server.
how can i do ?
Someone help me?

Last edited by Arvy; 04-04-2008 at 02:57.
Arvy is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 04-04-2008 , 03:38   Re: can i check out the command ?
Reply With Quote #6

The client commands 'exec' and 'wait' are not sent to the server, they are done locally. So you can't block it, without slow-hacking the client.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Arvy
Member
Join Date: Oct 2007
Old 04-05-2008 , 00:47   Re: can i check out the command ?
Reply With Quote #7

thanks all
Arvy is offline
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 12:15.


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