So pretty much both me and all the admins in my server thought it would be better to create our own plugin for displaying the rules, since we could customize it to our likings.
But none of us have Source Pawn Experience (Derp).
I've gotten it so it will work when typing /rules !rules, but i was hoping to add the ability of a cvar so if the url changes i dnt have to edit the .sp and recompile then reupload, just have to edit a .cfg file with the updated url...
but i cant for the life of me find a way to read the String data on a ConVar....
Heres the current code (Theres nothing disclosing, as because of the default url in the ConVar is google
Be warn, there are probley more errors then letters within this code (:
rulesurl = CreateConVar("sm_rulesurl", "http://google.com", "The location of a .txt file with your rules in it (:")
public Action:Command_Test(client, arg)
new Handle:setup = CreateKeyValues("data");
new Handle:cvar = GetConVarString(rulesurl)
KvSetString(setup, "title", "UnknownAU Music");
KvSetNum(setup, "type", MOTDPANEL_TYPE_URL);
KvSetString(setup, "msg", cvar);
ShowVGUIPanel(client, "info", setup, true);