Raised This Month: $ Target: $400
 0% 

[HELP]How to do check smth after map change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Metanabol
Member
Join Date: Feb 2009
Old 03-05-2009 , 13:44   [HELP]How to do check smth after map change
Reply With Quote #1

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:
    if (containi(mapname,"35hp")!=-1)
     
set mapz to 0i dont know how)(mapz is variable)
    if (
containi(mapname,"ka_")!=-1)
     
set mapz to 0i dont know how)(mapz is variable)
    if (
containi(mapname,"awp_")!=-1)
     
set mapz to 0i dont know how)(mapz is variable)
    if (
containi(mapname,"fy_")!=-1)
     
set mapz to 0i dont know how)(mapz is variable)
    if (
containi(mapname,"most_")!=-1)
     
set mapz to 0i dont know how)(mapz is variable
PHP Code:
if(mapz 0) {
my all commands will be executed here :)

Metanabol is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode