View Single Post
SAMURAI16
BANNED
Join Date: Sep 2006
Old 02-24-2007 , 04:21   Re: Terms & Agreement (With Client Logging) - by Dahvid, optimized by xxAvalanchexx
Reply With Quote #7

1) Exactly how Deviance says, don't use hardcode paths
For example istead of:
Code:
new const agreedfile[] = "addons/amxmodx/configs/agreed.ini";
use:
Code:
new agreedfile[128]
get_localinfo("amxx_configsdir",agreedfile,127)
format(agreedfile,127,"%s/agreed.ini",agreedfile)
Also for "rules" and "declinedfile" file

2) I suggest to rename the "rules" file into another name because almost "Rules" plugins have a file wich called "rules.txt/ini", and it's better to change it in something like "rules_agreement" or something like that
SAMURAI16 is offline
Send a message via MSN to SAMURAI16