Help improving map-requester
Hi,
I make this code where players can request new maps by typing "requestmap mapname" in console and it write the mapname , players name and steamid to a maprequests.ini file in data folder. But i'm kinda new to read_argv, so if you guys could check if i can improve it. Thanks PHP Code:
Code:
Angel_Killer -*CF*- ID: STEAM_ID_LAN requests map: de_test |
Re: Help improving map-requester
Does it work?
If I haven't missed anything, the map requesting part looks fine. However, I would change the advert function to: PHP Code:
|
Re: Help improving map-requester
Yes, it works perfect. If you want i can give you a line from the maprequests.ini file.
But should'nt i remove the task if cvar_advert == 0, to avoid it been called all the time? Or won't that work because of plugin init? PHP Code:
|
Re: Help improving map-requester
Quote:
PHP Code:
Actually, if it were me, I would just hard code it. Especially if it was just for my server. |
Re: Help improving map-requester
So i put that in plugin_init() under the register_cvar?
I didn't know that i could use PHP Code:
Edit: should it be Code:
get_cvar_numCode:
get_pcvar_num |
Re: Help improving map-requester
Ok, so I change my mind a little bit. This is what I think I might do:
PHP Code:
|
Re: Help improving map-requester
i did the same, but in another way xD
PHP Code:
PHP Code:
btw: i forgot to thank you in my previous posts, Thanks |
Re: Help improving map-requester
Quote:
2. It shouldn't matter. Test it out. |
Re: Help improving map-requester
i tryed it with the "amx_mapreq_advertdelay 400"
But it shows up every 8-10 seconds Edit: with both 400 and 400.0, 10 seconds delay. Strange? |
Re: Help improving map-requester
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 03:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.