Raised This Month: $ Target: $400
 0% 

logaddress forcing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
geras1m
Junior Member
Join Date: Feb 2009
Old 02-22-2009 , 15:07  
Reply With Quote #1

Ok, so this is what i've tried to make. Whenever logaddress_del command is called on my server, plugin readds log address. I've never made any amxx plugin so this is my first time trying.

Here's the code:

Code:
public plugin_init(){
    register_plugin(PLUGIN, VERSION, AUTHOR);
    register_logevent("addlog",5,"3=logaddress_del");
}

public addlog(){
    set_cvar_string("logaddress_add","myip myport");
}
First, i've tried adding just sv_restart 1 to addlog, but addlog is never called. I've probably misunderstood register_logevent function. Then i've added logevent from function's example (joining CT) but then only restart worked so i guess set_cvar_string cannot be used for logaddress_add.

By the way, log message looks like this:

Code:
L 02/22/2009 - 20:48:32: Rcon: "rcon 705921411 "rconpass" logaddress_del myip myport" from "sourceip:sourceport"
Anyone willing to help on this ?

Or is this possible to make to be called without using log event ?

Last edited by Exolent[jNr]; 02-22-2009 at 22:25.
geras1m is offline
Old 02-22-2009, 17:39
geras1m
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
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:04.


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