Raised This Month: $ Target: $400
 0% 

how to remove bomb sites and hostages?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 12-16-2007 , 16:07   how to remove bomb sites and hostages?
Reply With Quote #1

Im trying to make something so i can remove the bomb site and hostages from the map, and i dont know how to start it, if someone can give me some tips

Thanks.
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 12-16-2007 , 16:55   Re: how to remove bomb sites and hostages?
Reply With Quote #2

Search "No Objectives"
__________________
hugz` is offline
Send a message via AIM to hugz`
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 12-16-2007 , 16:58   Re: how to remove bomb sites and hostages?
Reply With Quote #3

no objective has remove timer also.
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 12-16-2007 , 17:36   Re: how to remove bomb sites and hostages?
Reply With Quote #4

Comment out lines #116-#119 in the .sma to put timer back on
But remember.. the round won't end because the are no objectives.

If you want the round to be over, then search for it.. I recommend CT slay plugin.. or something like that.
__________________

Last edited by hugz`; 12-16-2007 at 17:40.
hugz` is offline
Send a message via AIM to hugz`
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 12-16-2007 , 17:49   Re: how to remove bomb sites and hostages?
Reply With Quote #5

i got a remove objective edited modified, it has timer and stuff but no hostage and bomb.
But round wont end, ima work on something to make t's win if round ends.
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 12-16-2007 , 19:33   Re: how to remove bomb sites and hostages?
Reply With Quote #6

Compile this..
Quote:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "3:00 Countdown"
#define VERSION "1.0"
#define AUTHOR "M249-M4A1"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "Countdown", "a", "1=0", "2=0")
}

public
Countdown() {
if (
task_exists(12345)) {
remove_task(12345)
set_task(180.0, "doSomething", 12345)
} else {
set_task(180.0, "doSomething", 12345)
}
}

public
doSomething() {
server_cmd("team_win 1")
}
And add also get this plugin: http://forums.alliedmods.net/showthr...force+team+win

Both of them will work as a "Terrorists Win" at the end of the timer.
Make sure your round time is set to 3 minutes.
__________________
hugz` is offline
Send a message via AIM to hugz`
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 12-16-2007 , 20:04   Re: how to remove bomb sites and hostages?
Reply With Quote #7

the tiem cant be lower than 3?

Edit, nvm it can be lower or grater than 3, 180.0 = 3 mins

Well thanks, hugz.
__________________

Last edited by Battousai-sama; 12-16-2007 at 20:13.
Battousai-sama is offline
Send a message via MSN to Battousai-sama
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-16-2007 , 20:37   Re: how to remove bomb sites and hostages?
Reply With Quote #8

This one should work whatever the roundtime.

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

#define TASKID 1654879

native cs_force_team_win(CsTeams:team)

new const 
force_team_win_plugin_name[] = "Force Team Win"

new mp_roundtimeFloat:g_roundtime
new g_maxplayerssv_restart

public plugin_init() {
    
register_plugin("Round Countdown""1.1""M249-M4A1/connor")
    
register_event("HLTV""eNewRound""a""1=0""2=0")
    
register_logevent("eRoundStart"2"1=Round_Start")
}

public 
plugin_cfg() {
    
mp_roundtime get_cvar_pointer("mp_roundtime")
    
sv_restart get_cvar_pointer("sv_restart")
    
g_maxplayers get_maxplayers()
}

public 
eNewRound() {
    
g_roundtime get_pcvar_float(mp_roundtime)
}

public 
eRoundStart() {
    if (
task_exists(TASKID))
        
remove_task(TASKID)

    
set_task(g_roundtime"doSomething"TASKID)
}

public 
doSomething(taskid) {
    if(
is_plugin_loaded(force_team_win_plugin_name) && get_playersnum(1) < g_maxplayers)
        
cs_force_team_win(CS_TEAM_T)
    else
        
set_pcvar_float(sv_restart1.0)

edit : added restart if server is full as VEN plugin wouldn't work in that case, but i can replace with slay all players or a team
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-16-2007 at 21:01.
ConnorMcLeod is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 12-16-2007 , 20:40   Re: how to remove bomb sites and hostages?
Reply With Quote #9

yea u did getcvar mp roudntimer so it detects and goes with that cvar, nice work connorr
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-16-2007 , 20:58   Re: how to remove bomb sites and hostages?
Reply With Quote #10

Updated again for safe use (i hope)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 11:06.


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