Raised This Month: $ Target: $400
 0% 

editing .SMA


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zx0rq
Junior Member
Join Date: Apr 2006
Old 04-27-2006 , 20:54   editing .SMA
Reply With Quote #1

I AM NOT TRYING TO PASS THIS(these) PLUGIN(s) AS MY OWN IN ANY WAY SHAPE OR FORM

I took the .sma of >THIS< plugin and edited a few strings. I changed all the words "rules" to "maps". I made it where when you're in my server and you type "/maps", instead typing "/showrules" and showing you rules it lists all the custom maps available for nomination. The help I want from you guys is what do I do to make it when a person types "/maps" the maps.txt file is read but it doesn't display (Player: /maps". Kind of like /rank and /top15 when you type those it doesn't show up in the text area it just shows you your rank or pops up the MOTD window with the top15.. My reason for this request is because I am planning on using my Task Scheduler to add a line

amx_task 5 amx_execall "say /maps" mr

I will NOT try to claim this as mine, I would NOT attempt to re-distribute it. It would be for personal-server use only..

Please help out if you know anything about scripting!! Thanks in advance, -zx0rq
__________________
Best CS 1.6 server ever since 4/26/04
zx0rq is offline
Send a message via AIM to zx0rq
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-27-2006 , 21:17  
Reply With Quote #2

using the original plugin as an example...
Code:
register_clcmd("say /rules", "clientrules", ADMIN_ALL, "- show rules")
find the function "clientrules"
Code:
public clientrules(id, level, cid) {
	new pID[1]
	pID[0] = id
	
	console_print(0,"[user %d]Print rules for me only",pID[0])
	printrules(pID[0])
}
before the "}" add "return PLUGIN_HANDLED"
Code:
public clientrules(id, level, cid) {
	new pID[1]
	pID[0] = id
	
	console_print(0,"[user %d]Print rules for me only",pID[0])
	printrules(pID[0])

	return PLUGIN_HANDLED
}
that should work
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-28-2006 , 14:33  
Reply With Quote #3

Emp`: http://forums.alliedmods.net/showthread.php?t=26363
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply


Thread Tools
Display Modes

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 05:03.


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