Raised This Month: $ Target: $400
 0% 

retrict buying weapons in 35hp_2 map.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Metanabol
Member
Join Date: Feb 2009
Old 03-08-2009 , 07:44   retrict buying weapons in 35hp_2 map.
Reply With Quote #1

Hello, i made little script to fix bug then 35hp_2 or most_wanted map starts, there player can buy weapon in first round (then server starts)
but i get error then i try this to complile
PHP Code:
#include <amxmodx>
 #include <amxmisc>
 #include <cstrike>
 
new g_round 0
 
new bool:g_check false;
 new 
g_bug[][] =
 {
         
"35hp",
         
"ka_",
         
"most_"
 
}
 public 
plugin_init()
 {
     
register_plugin("MAP bug fix","1.0","Metanabol")
     
register_clcmd("p228","HandleCmd")
     
register_clcmd("hegrenade","HandleCmd")    
     
register_clcmd("smokegrenade","HandleCmd")
     
register_clcmd("elite","HandleCmd")
     
register_clcmd("fiveseven","HandleCmd")
     
register_clcmd("usp","HandleCmd")
     
register_clcmd("glock18","HandleCmd")
     
register_clcmd("deagle","HandleCmd")
     
register_logevent("logevent_Round_Start"2"1=Round_Start");
     new 
MapName[64];
 
         
get_mapname(MapName63);
  
         for (new 
Map 0Map sizeof(g_bug); Map++)
                 if (
containi(MapNameg_bug[Map]) != -1)
         {
             
g_check true;
     }
 }
 public 
logevent_Round_Start()
 {
     
g_round++
 }
 public 
HandleCmd(id){
     if(
g_round && g_check) {
              
client_print(0print_chat"[KPZ] Player tried to buy weapon.")
               return 
PLUGIN_HANDLED
    
}
 } 
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 08:59.


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