some advices and corrections?
Alright before you read this code, i am relatively at new coding. I have intermediate (maybe a bit more) knowledge in c++, but i want to learn amxx scripting. I have had this idea for a while about his plugin.
It basically on command searches for players with the same ip. And by cvar, blackout (mp_fadetoblack like function) those players when dead. NOTE: i am pretty aware that this plugin might have a lot of bad written stuff but you gotta learn someday :D also i couldn't test it all by myself, and that's why i came to you guys for help :D I put a lot of comments so i don't forget :P (force of habit :D) Now on to the code EDIT: code removed I appreciate any help from anyone, thank you :D P.S.: i just wanted to thank MPNumB a lot, he has been very kind to me in helping me immensly with this :D I am planning on releasing this plugin as soon as it becomes stable. If you have any questions about a part of the code, let me know :D |
Re: some advices and corrections?
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: some advices and corrections?
[php]for(new i = 1; i <= g_iMaxPlayers; i++) [php]
thank you i have missed that :D PHP Code:
and if its bigger than 32 it returns 32 m i wrong? PHP Code:
PHP Code:
ill fix the code in a moment EDIT: code updated :D |
Re: some advices and corrections?
Quote:
Therefore, there's no reason to make that check. |
Re: some advices and corrections?
By hard coding servers are able to go up to several hundred of players :)
At least that's what I herd, and I think I saw such a server back in the days |
Re: some advices and corrections?
Quote:
|
Re: some advices and corrections?
Since it won't Make a difference, I removed that piece :)
Any other corrections? |
Re: some advices and corrections?
PHP Code:
To show into server console: PHP Code:
|
Re: some advices and corrections?
Why isn't it possible, I'm passing the I'd of the player who used the command in order to print it in their console of the players who have the same ip.
What's the difference between console_print() and client_print( , print_console, ) ??? |
Re: some advices and corrections?
Quote:
At least in functionality, there is no difference. |
| All times are GMT -4. The time now is 06:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.