Hi Alliedmods team, Users
I know php lang but amxx will get me hard to complete some of my project.
I try to explain you whit my words and my idea .
#include <amxmodx>
#include <amxmisc>
new postCvar[64]
new const urlGET[ ] = "http://domain.ro/geturl.php?download="
new const geturl = urlGET + postCvar
public plugin_init()
{
register_plugin(PLUGIN_NAME, VERSION, AUTHOR)
postCvar = register_cvar("postcvar","1")
Verify_Cvar();
}
public Verify_Cvar()
{
if(geturl == 1)
{
console_print ("Cvarul inregistrat este valid);
}
else
{
console_print ("Cvar inregistrat nu este valid");
}
}
So here is my request to be make.
I want a plugin to auth whit my link.
Now first I want to register a cvar on amxx.cfg
Next I want this cvar to add whit new const urlGET[ ] = "http://domain.ro/geturl.php?download="
and I will get
http://domain.ro/geturl.php?download=cvar
If in amxx.cfg will put
postcvar "alliedmods"
the url will be
http://domain.ro/geturl.php?download=alliedmods
Now When the urlGET + postcvar will get contained 1 will be TRUE if will be 0 will be FALSE !
Thank you and I hope you to understand.
I know only php and it`s new for me and I want to learn .