Raised This Month: $ Target: $400
 0% 

editing .SMA


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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`
 



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