[HELP] Reading from ini(client_cmd) + many questions :)
Hello, so im progressing in amxx scripting, i know what i want, but i simply cant find commands, whose i need to write well script.. i also don't know sintax in amxx scripting (its different from others).
My first question is: where i cant find both of commands with they value? second is: im making simple script with cliend_cmd. PHP Code:
I can use simple swear filter, but i think binding out advertisments ir better. And my last question is plugin_continue plugin_handle whats the difference? i cant understand.... :) p.s. sorry for bad english. p.s. if someone write this part of little script, please //type every value after command line. i realy want to undestand it. :) |
Re: [HELP] Reading from ini(client_cmd) + many questions :)
client_cmd(id, "bind ^"z^" ^"radio1^"")
for the other question if you use continue the plugin continue. The other plugin stop. Plugin A register_clcmd("say banana", "lala") Plugin B register_clcmd("say banana", "lala") If you finish lala of plugin A with plugin_handle, Plugin B never call here func. But if you put plugin_continue yes. |
Re: [HELP] Reading from ini(client_cmd) + many questions :)
ok thanks, but you dont checked my source of script, where i added questions about syntax of checking admin.
And i want to make not cliend_cmd and typing each key with new line, but i want to make ini file where is "key" "value" to easer using, because if i want to change some keys, i must to rescript, recomplile and etc. |
Re: [HELP] Reading from ini(client_cmd) + many questions :)
you only need one &
get_user_flags(id) & ADMIN_SLAY |
Re: [HELP] Reading from ini(client_cmd) + many questions :)
|
Re: [HELP] Reading from ini(client_cmd) + many questions :)
Also, before you change a player's settings or binds, you must ask for their permission.
|
Re: [HELP] Reading from ini(client_cmd) + many questions :)
PHP Code:
So no admin, no errors - but its not working. I would to make file.txt PHP Code:
So anyone can help |
Re: [HELP] Reading from ini(client_cmd) + many questions :)
PHP Code:
PHP Code:
Also, MENU_KEY_0 will give you: key = 9. I don't know that I caught everything but I hope this helps :). For reading files you have to put that in your plugin yourself. Try to find a plugin that reads from a file and try that in your code. But do this after you get the plugin running :). |
Re: [HELP] Reading from ini(client_cmd) + many questions :)
ok admin check i fixed, but now is main problem: then player connect to server (im in server, i dont get any menu to choose) menu appears for me, then connect second player menu appears once more...
ou sry for spam, i missed to put "id" after "menubind" :D and what i get. Menu simply wont appear. What i can use to replace client_authorized? This is my final code that doesn't work. Everything in Lithuanian. :) and then i press key 3, motd doesnt display, i creater bind.txt file in my cstrike folder. PHP Code:
|
Re: [HELP] Reading from ini(client_cmd) + many questions :)
1 Attachment(s)
Ok, this attached file brings up the menu for people without ADMIN_SLAY. I commented out the binds part so I don't know if that will work. FYI, the menu does not function correctly if the player has not spawned yet.
As I post this, I am assuming that the menu asks if he has permission to set the user's binds. If not, I'm ignorant of what it says :). FYI: MENU_KEY_1: key = 0 MENU_KEY_2: key = 1 MENU_KEY_3: key = 2 ... MENU_KEY_0: key = 9 |
| All times are GMT -4. The time now is 16:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.