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
Metanabol
Member
Join Date: Feb 2009
Old 03-05-2009 , 14:12   Re: [HELP]How to do check smth after map change
Reply With Quote #3

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:
if (mapz 0) { it will do my commands :)
// mapz value > 0 i will normaly enable custom item menu :) 
point of this is disable free items for VIP in these maps. (because you dont want to see player shooting from ak47 in knife maps?)

p.s. i dont paste all code, because its very long...
Metanabol is offline
 



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