Raised This Month: $ Target: $400
 0% 

Click in motd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 12-08-2018 , 22:05   Click in motd
Reply With Quote #1

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
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode