Noobie at scripting..
Alright.. I read the doc.. I have a question.. I read the Basic Plugin completely.. about the amx_hp plugin..
Code:
public plugin_init()register_concmd.. I understand amx_hp.. I understand the admin level, and I understand the <target> for amx_help. I dont understand cmd_hp.. I think that its the command that is sent to the server.. Not sure though... But, That is only for health.. What if I want to make a completely different plugin, having nothing to do with health.. How do I find that? Thnx.. Real noob at scripting. |
The "cmd_hp" part is what is executed when someone uses amx_hp. In this case, return PLUGIN_HANDLED is executed when someone uses amx_hp, which means this plugin is useless.
Code:
|
I realize that. That was just a 'snippet' of the code You guys missed my question entirely.
Quote:
Thnx |
Notice the cmd_hp in the plugin initiation:
Code:
See how it matches the function below it, with: Code:
The cmd_hp could be changed to anything, you could switch them both to say myfunction or function_1. It is just tieing the function with the command (amx_hp). |
OK, you solved that problem.. How about,
In another plugin, there is something like cs_get_user_money or something like that.. I dont know how to make these plugins work... Maybe Im missing something.. Please help |
Im assuming you want to figure out how much money a given user has?
Code:
|
bump :)
|
Read http://www.amxmodx.org/doc first.
|
Quote:
Ok, now instead of cmd_health, you are using cmd_money. Is there a huge list of those? Or, is that perhaps a var that you create? I dont understand it. Please help :( :( |
|
| All times are GMT -4. The time now is 16:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.