View Single Post
Author Message
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 08-25-2018 , 12:52   [HELP] Location change by cvar Motd
Reply With Quote #1

Hey Friends

need help like i have 2 online uploaded html files i want i can change that url's by cvar like :-
default cvar :-
amx_html_rules_url "http://yourwebsite.com/youfolder/yourfile1.html"

and i want to change url by cvar like
amx_html_rules_url "http://yourwebsite.com/youfolder/yourfile2.html"
like this.

default code

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <cromchat>

public plugin_init() 

    
register_plugin("Yest""1.3""Test"
    
register_clcmd("say /rules""msmotd")  
    
register_clcmd("say_team /rules""msmotd")
    
register_clcmd("say /rule""msmotd")  
    
register_clcmd("say_team /rule""msmotd")
    
set_task(40.0"adv")

    
//Since you wanted console too...
    
register_clcmd("amx_hns_rulles""msmotd")  

public 
msmotd(id)

{
    
show_motd(id"http://yourwebsite.com/youfolder/yourfile1.html");
}

public 
adv(id)

{
    
ColorChat(0GREY"^4-^1=^3}^4MultiMod^3{^1=^4- ^3Type ^4/rules^3 and^4 rules ^3And Read ^4Hide N Seek ^1Rules");
    
set_task(200.0"adv")

Thanks in advance help please.
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234