Raised This Month: $51 Target: $400
 12% 

Need to Edit this Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
counterstrike1.6
Member
Join Date: Oct 2020
Old 07-14-2022 , 20:33   Need to Edit this Plugin
Reply With Quote #1

Hi All !!!

I need a modification in this Code


1) make cvar for this how many second should it display in in normal chat [1 for on Time, X second/0 for off Time]


PHP Code:
#include <amxmodx> 
#include <cstrike> 
new runde 0
new prefix[32] = "AMXX"
new TerrScoreCTScore

public plugin_init()  

    
register_plugin"Info Top""1.4""->UrOS<-")    
    
register_event("HLTV""round_start""a""1=0""2=0")
    
register_event("TextMsg""round_restart""a""2=#Game_will_restart_in")
    
register_event("TeamScore""terr_score""a""1=TERRORIST")
    
register_event("TeamScore""ct_score""a""1=CT")


public 
round_restart()
{
    
runde 
}

public 
terr_score()
{
    
TerrScore read_data(2)
}

public 
ct_score()
{
    
CTScore read_data(2)
}

public 
round_start() 

    
runde++ 
    
    new 
mapname[32], nextmap[32], players[32], player ,maxrundimaxplayers 
    
    maxrundi
=get_cvar_num("mp_maxrounds")
    
maxplayers=get_maxplayers()
    
get_cvar_string("amx_nextmap",nextmap,31
    
get_mapname(mapname,31 
    
get_players(playersplayer)
    
    
client_print(0,print_chat,"[%s] Rounds: %d/%d | Score:Ts:%i - CTs:%i | Map: %s/%s | Players: %d/%d",prefixrunde,maxrundi,TerrScore,CTScore,mapnamenextmapplayer,maxplayers


Last edited by counterstrike1.6; 07-14-2022 at 22:33.
counterstrike1.6 is offline
Reply



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 10:33.


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