hello guys..i found this thing:
Map editor (Texture MOTD)
It has so many options, but im interested in: what is the thing/code for browsing the motd and then click on something and its executed? i would know that if i load any .php which has already integrated functions, but how to do this without it (without your host/web) ?
also this is maybe even more interesting:
Entity properties MOTD
all files are here:
https://github.com/jonatan1024/cs-editor
i was searching the .sma there, and came to:
Code:
format(url,32,"entities/entity=%d,%d",entity,id)
ed_motd(id,url,"Entity properties")
ed_motd(id, url[], title[]){
new content[128], addr[64]
//get_user_ip(0, addr, 23, 0)
get_cvar_string("net_address", addr, 64)
/*copy(addr,23,"xxx.xxx.xxx.xxx:27015")
if(cl_islocal[id])
copy(addr,23,"10.0.0.xxx:27015")*/
format(content,128,"<meta http-equiv=^"refresh^" content=^"0; url=http://%s/%s^">",addr,url) //this line is for showing it, but wtf ://
show_motd(id,content,title)
}
i hope his module isnt the thing which is changing this buttons/browsing in motd...
*there is /src/ folder, with texture.cpp + .h.. and other files but i have no idea what are they for and where it should be added (i hope not on the host)...
any explanation is very welcomed! im interested in modifying these properties/buttons for something else
__________________