Quote:
|
Originally Posted by ZiP*
Quote:
|
Originally Posted by v3x
I've been coding for at least 2 months now, and I'm learning this a hell of a lot faster than when I was learning PHP.
|
lol, i've tried to learn it for 1 year now... And i can't remember the plugin_init part 
|
Lol, damn man.. Just stick with it, you'll eventually learn something.
@h4ns:
Code:
#include <amxmodx>
public plugin_init() {
// ..
register_concmd("say","handle_say")
register_concmd("say_team","handle_say")
}
public handle_say(id) {
new message[264]
read_args(message,263)
remove_quotes(message)
if(containi(message,"changemap")!=-1) {
// ..
server_cmd("kick #%d ^"You said changemap!^"",get_user_userid(id))
}
return PLUGIN_HANDLED
}
__________________