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

want a restart/live plugin for cs 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rjsandy11
Member
Join Date: Oct 2016
Old 10-06-2016 , 07:45   want a restart/live plugin for cs 1.6
Reply With Quote #1

a plugin when admin say /live in chat round restart 3 times and knife round occurs,,plzz help
rjsandy11 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-06-2016 , 16:51   Re: want a restart/live plugin for cs 1.6
Reply With Quote #2

This is untested though

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <fun>

#define PLUGIN "Live"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

new bool:isLive

new iRestarts

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /live""CmdLive")
    
register_logevent("RoundStart"2"1=Round_Start")
    
register_logevent("RoundEnd"2"1=Round_End")
    
register_event("CurWeapon""WeaponChange""be""1=1""2!29")
}

public 
CmdLive(id) {
    if(
isLive || !(get_user_flags(id) & ADMIN_BAN)) {
        return 
PLUGIN_HANDLED
    
}
    
    
set_task(1.0"CmdRestart"id)
    return 
PLUGIN_HANDLED
}

public 
CmdRestart(id) {
    if(
iRestarts == 3) {
        
isLive true
        iRestarts 
0
        ColorChat
(0GREEN"[AMXX]^1 Knife round has started")
        
server_cmd("mp_freezetime 0")
    }
    else {
        
iRestarts++
        
server_cmd("sv_restart 1")
        
set_task(1.0"CmdRestart"id)
    }
}

public 
RoundStart() {
    if(!
isLive) {
        return 
PLUGIN_HANDLED
    
}
    
    new 
iPlayers[32], iNumid
    get_players
(iPlayersiNum"a")
    
    for(new 
iiNumi++) {
        
id iPlayers[i]
        
strip_user_weapons(id)
        
give_item(id"weapon_knife")
    }

    return 
PLUGIN_HANDLED
}

public 
RoundEnd() {
    
isLive false
}

public 
WeaponChange(id) {
    if(
isLive) {
        
engclient_cmd(id"weapon_knife")
        
server_cmd("mp_freezetime 6"// Change this value if your server has other settings.
    
}

__________________

Last edited by Napoleon_be; 10-06-2016 at 16:59.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
rjsandy11
Member
Join Date: Oct 2016
Old 10-07-2016 , 05:16   Re: want a restart/live plugin for cs 1.6
Reply With Quote #3

/tmp/textYuSY48.sma(3) : fatal error 100: cannot read from file: "colorchat"

Compilation aborted.
1 Error.


tried from web compliler plz help i m really noob in this.........
rjsandy11 is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 10-07-2016 , 06:23   Re: want a restart/live plugin for cs 1.6
Reply With Quote #4

Quote:
Originally Posted by rjsandy11 View Post
/tmp/textYuSY48.sma(3) : fatal error 100: cannot read from file: "colorchat"

Compilation aborted.
1 Error.


tried from web compliler plz help i m really noob in this.........
Compile it locally using colorchat include , if your using AMXX 1.8.3 then no need of any include just remove color chat Inc and replace ColorChat with client_print_color
tousif is offline
rjsandy11
Member
Join Date: Oct 2016
Old 10-07-2016 , 06:35   Re: want a restart/live plugin for cs 1.6
Reply With Quote #5

ty it worked bt now i have another problem it should say go go go in green colour in hud at knife round
can u do that.....
rjsandy11 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-07-2016 , 07:06   Re: want a restart/live plugin for cs 1.6
Reply With Quote #6

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <fun>

#define PLUGIN "Live"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

new bool:isLive

new iRestarts

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /live""CmdLive")
    
register_logevent("RoundStart"2"1=Round_Start")
    
register_logevent("RoundEnd"2"1=Round_End")
    
register_event("CurWeapon""WeaponChange""be""1=1""2!29")
}

public 
CmdLive(id) {
    if(
isLive || !(get_user_flags(id) & ADMIN_BAN)) {
        return 
PLUGIN_HANDLED
    
}
    
    
set_task(1.0"CmdRestart"id)
    return 
PLUGIN_HANDLED
}

public 
CmdRestart(id) {
    if(
iRestarts == 3) {
        
isLive true
        iRestarts 
0
        ColorChat
(0GREEN"[AMXX]^1 Knife round has started")
        
set_hudmessage(02550, -1.00.3506.06.00.10.2, -1)
        
show_hudmessage(0"Go Go Go!")
        
server_cmd("mp_freezetime 0")
    }
    else {
        
iRestarts++
        
server_cmd("sv_restart 1")
        
set_task(1.0"CmdRestart"id)
    }
}

public 
RoundStart() {
    if(!
isLive) {
        return 
PLUGIN_HANDLED
    
}
    
    new 
iPlayers[32], iNumid
    get_players
(iPlayersiNum"a")
    
    for(new 
iiNumi++) {
        
id iPlayers[i]
        
strip_user_weapons(id)
        
give_item(id"weapon_knife")
    }
    
    return 
PLUGIN_HANDLED
}

public 
RoundEnd() {
    
isLive false
}

public 
WeaponChange(id) {
    if(
isLive) {
        
engclient_cmd(id"weapon_knife")
        
server_cmd("mp_freezetime 6"// Change this value if your server has other settings.
    
}

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
rjsandy11
Member
Join Date: Oct 2016
Old 10-07-2016 , 11:51   Re: want a restart/live plugin for cs 1.6
Reply With Quote #7

thank u sir
rjsandy11 is offline
ssproxima
Senior Member
Join Date: Jan 2015
Old 10-07-2016 , 23:44   Re: want a restart/live plugin for cs 1.6
Reply With Quote #8

nice plugin but cant a delay be added in between three restarts and another addition can be made as after third round begins a HUD message appears of LIVE
ssproxima is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-08-2016 , 11:09   Re: want a restart/live plugin for cs 1.6
Reply With Quote #9

Quote:
Originally Posted by ssproxima View Post
nice plugin but cant a delay be added in between three restarts and another addition can be made as after third round begins a HUD message appears of LIVE
I'm not making 1000 other versions of this... If you want the plugin to be changed to your needs, you should post a new topic. I might help you there instead of here. It might confuse some people making 1000's of different versions.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
ssproxima
Senior Member
Join Date: Jan 2015
Old 10-08-2016 , 14:23   Re: want a restart/live plugin for cs 1.6
Reply With Quote #10

Quote:
Originally Posted by Napoleon_be View Post
I'm not making 1000 other versions of this... If you want the plugin to be changed to your needs, you should post a new topic. I might help you there instead of here. It might confuse some people making 1000's of different versions.
Hey buddy chill I was just suggesting you ..... I was trying to help make this plugin more decorative...... nvm if you would have tested that plugin you would have know that the 3 restarts goes too fast and also the live message cant be seen.... very well no problem ... but that was a nice plugin
ssproxima 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 07:33.


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