Raised This Month: $ Target: $400
 0% 

[REQ] Console Command on round start for CS 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hackscomicon
Junior Member
Join Date: Feb 2016
Old 02-22-2016 , 15:23   [REQ] Console Command on round start for CS 1.6
Reply With Quote #1

I need a plugin that will run the console command "amx_parachute @all" three seconds after the round restarts. This for cs 1.6 and my amxmodx is running 1.8.2 version. Thanks!
hackscomicon is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 02-22-2016 , 16:01   Re: [REQ] Console Command on round start for CS 1.6
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    
register_logevent("RoundStart"2"1=Round_Start")  
}

public 
RoundStart()
    
//Setup time after start of round
    
set_task(3.0"UseCommand")
    
public 
UseCommand()
{
    
//Setup what command you want to use after # seconds
    
server_cmd("amx_parachute @all")
    return 
PLUGIN_HANDLED

Attached Files
File Type: sma Get Plugin or Get Source (14223.sma - 553 views - 359 Bytes)
__________________

Last edited by Artifact; 02-22-2016 at 16:04.
Artifact is offline
Old 02-22-2016, 16:15
addons_zz
This message has been deleted by addons_zz. Reason: wrong thread
Croxeye
Member
Join Date: Jul 2015
Old 02-22-2016 , 17:18   Re: [REQ] Console Command on round start for CS 1.6
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=42159
__________________
Croxeye is offline
crnova
Senior Member
Join Date: Sep 2015
Old 02-22-2016 , 17:51   Re: [REQ] Console Command on round start for CS 1.6
Reply With Quote #4

Quote:
Originally Posted by Artifact View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    
register_logevent("RoundStart"2"1=Round_Start")  
}

public 
RoundStart()
    
//Setup time after start of round
    
set_task(3.0"UseCommand")
    
public 
UseCommand()
{
    
//Setup what command you want to use after # seconds
    
server_cmd("amx_parachute @all")
    return 
PLUGIN_HANDLED

no need to include amxmodx when including amxmisc, because if you include amxmisc, amxmodx is included
crnova is offline
hackscomicon
Junior Member
Join Date: Feb 2016
Old 02-23-2016 , 02:45   Re: [REQ] Console Command on round start for CS 1.6
Reply With Quote #5

Thanks!
hackscomicon 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:03.


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