[HELP]How to do check smth after map change
Hello, i want to do it then MAP CHANGES. IT SIMPLY CHECK IS 35hp and etc. in map name. if not false, it set variable value to 0... default "mapz" value=1
I want to disable of buying menu for VIP :) so i need only 2 answers: how to set variable and how to check is 35hp in mapname at mapchange.(mapname = get_mapname(mapname, 31)) so: PHP Code:
PHP Code:
|
Re: [HELP]How to do check smth after map change
plugin_init? or what are you talking about :|
|
Re: [HELP]How to do check smth after map change
I start server. And we have a map, there we play... :|
Every time then server change map, plugin must check: if (containi(mapname,"35hp")!=-1) set mapz to 0 ( i dont know how to set variable "mapz") if (containi(mapname,"ka_")!=-1) set mapz to 0 if (containi(mapname,"awp_")!=-1) set mapz to 0 if (containi(mapname,"fy_")!=-1) set mapz to 0 if (containi(mapname,"most_")!=-1) set mapz to 0 I dont know to to set variable "mapz" to 0 then i have: PHP Code:
p.s. i dont paste all code, because its very long... :) |
Re: [HELP]How to do check smth after map change
Can't you just use map-specific config files?
|
Re: [HELP]How to do check smth after map change
like amx_retrict? hmmm... its not simple buy ...
then round start plugin to players with flag T shows menu with weapons. then they select server use: give_item to player. PHP Code:
if this is more than 3rd round and mapz more than 0 plugin makes menu: showrod(player) :)... |
Re: [HELP]How to do check smth after map change
Code:
|
Re: [HELP]How to do check smth after map change
Thanks :) you understood what i wanted to do :)...
// :) malonu kad yra lietuviu supportinanciu Second problem: PHP Code:
error 029: invalid expression, assumed zero warning 215: expression has no effect error 001: expected token: ";", but found "-identifier-" all in 135 line: Code:
if (round > 2) && (g_VIP) Showrod(player)g_VIP=true; showrod - opens menu. whats the reason? i tried to make g_VIP without bool, set 0 1 (g_VIP > 0) nothing helps, same error |
| All times are GMT -4. The time now is 17:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.