Simple plugin not working
1 Attachment(s)
This isn't working - I just wrote it today with some referencing to other plugins/documentation so I bet there are a few mistakes I overlooked but I usually don't detect them until I stop looking at them for weeks :-). But, you can probably find them b/c you haven't looked at them before :-).
Slmclarengt P.S. Function is to "list all available maps on the server --> client" |
Re: Simple plugin not working
You shouldn't make it this way. It's not a good idea to give rcon password to players, but anyway this is how to fix this plugin:
PHP Code:
|
Re: Simple plugin not working
This is actually a really good idea! I made some extra protection in it which should make it much more secure.
Code:
|
Re: Simple plugin not working
I think the problem with check_say is that arg1 returns "say". So you need arg2 to the /map and arg3 for the prefix. Also a better way of getting the maps would be reading the maps directory.
PHP Code:
|
Re: Simple plugin not working
Wrong, "say" is the command and arg1 will never return "say" until you type it in chat or type "say say" in console :P
My version works fine, I checked it. slmclarengt, even if this work fine I recommend you to rewrite it other way. ex. store list of maps in file on server, load list on plugin_init to some array and code some function to display it for clients, you can use containi ( const source[], const string[] ) to compare arg. and maps in the array. |
Re: Simple plugin not working
I would do it like this:
Code:
|
Re: Simple plugin not working
All of your guys ideas were awesome. Thank you very much for the help! +karma to everyone because they all contain things I did not even think of. I got the idea of listing maps because I got so sick of people asking what maps we had and me having to read them off. I'm going to try Stupok's version because the idea I think is the most dynamic and secure - it doesn't give them any password :-) even a temp.
Works beautifully Stupok. I ran down the list of people who helped me and used all my karma up :-\. I'll give you yours tomorrow Stupok :-). It's awesome because unlike the built-in "maps *" command, it doesn't lag the server because it loads them more efficiently. What a surprise eh? AMXX Scripters > VALVe once again. Score: AMXX Scripters: Infinite VALVe: 1 Slmclarengt |
Re: Simple plugin not working
Where did the 1 point for VALVe come from? For creating CS? :D
Yeah the stupoks version is best. Stupok you should release it as separate plugin since it's so useful. BTW Thanks for the karma. |
Re: Simple plugin not working
Quote:
|
Re: Simple plugin not working
Quote:
|
| All times are GMT -4. The time now is 10:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.