Raised This Month: $ Target: $400
 0% 

how block command buy and something more.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 01-02-2010 , 19:08   Re: how block command buy and something more.
Reply With Quote #2

You can change the map_parameters.. But if you wan't to change only 1 round you can't do it. When you change this you can't come back at least you restart the map..
PHP Code:
#include <engine>
#include <amxmisc>
#include <amxmodx>

public plugin_precache () {
        
//If info_map_parameters exists
        
if (find_ent_by_class(iEnt"info_map_parameters"))
            
//Change the value "buying" to 3:
            //So you know, info_map_parameters is an entity that with their
            //settings you can change the bomb radius and the buy
            //The "buying" parameter has 4 values:
            //0- All can buy
            //1- Only CT can buy
            //2- Only TT can buy
            //Neither can buy
            
DispatchKeyValue("info_map_parameters""buying""3")
        
        else {
            
//If the entity doesn't exists
            //I create the entity, i set the buying value in 3 (previously explained) and i spawn it
            
ENT_CLASS create_entity("info_map_parameters")
            
DispatchKeyValue(ENT_CLASS"buying""3")
            
DispatchSpawn(ENT_CLASS)
        }


Last edited by Mxnn; 01-02-2010 at 19:10.
Mxnn 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 04:07.


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