Different Menu's for different maps
Hi,
I have a problem with following code PHP Code:
|
Re: Different Menu's for different maps
Problem is bad containi usage.
Anyway, you should initialize all stuff in plugin_init, could you show the register_clcmd line with say command please ? |
Re: Different Menu's for different maps
PHP Code:
|
Re: Different Menu's for different maps
PHP Code:
|
Re: Different Menu's for different maps
I don't get it :D .
It's kind of scripting help so I'll just go for it and ask questions: PHP Code:
PHP Code:
PHP Code:
|
Re: Different Menu's for different maps
sorry about that
Quote:
for example first item in mapnames is 1hp_he, that should be full map name so when i checking the map name i have to be sure that it is full map name because you need to check full map name and map beggining "kz_ for example" differently native containi will check if map name contains "1hp_he" and native equali will check if map name is exacly the same name as the map what is running in server. 0 means that my code use equali native to check, that means that map name must be full not the beggining of the map name or map tag what ever. 1 means that my code use containi and map name what you put mapnames variable is the map tag. and this is how are the connected PHP Code:
Quote:
PHP Code:
ismap will be 0 and this part will be called: PHP Code:
ismap will be 1 and this part will be called PHP Code:
|
Re: Different Menu's for different maps
Initialize all at plugin_init :
PHP Code:
|
Re: Different Menu's for different maps
Thank you very much guys, now it's a bit more brighter to me ;) .
|
| All times are GMT -4. The time now is 15:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.