Raised This Month: $ Target: $400
 0% 

AWP Player limit.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 10-23-2020 , 06:52   Re: AWP Player limit.
Reply With Quote #3

Quote:
Originally Posted by r0ma View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "r0ma'"

// Players needs for buy awp
const MIN_PLAYERS 14;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
CS_OnBuyAttempt(iditem) {
    if(
item == CSW_AWP && get_playersnum() < MIN_PLAYERS) {
        
client_print(idprint_chat"[AMXX] Need have %d players on server for buy AWP."MIN_PLAYERS);
        
        return 
PLUGIN_HANDLED;
    }
    
    return 
PLUGIN_CONTINUE;

Did you test the plugin ? Because idk doesnt work for me
HowToRuski 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 13:54.


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