AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   block Ct/T win (https://forums.alliedmods.net/showthread.php?t=56210)

flyeni6 06-08-2007 22:37

block Ct/T win
 
how do i block A Ct or T win.

in other words how do i stop all the events from happening like the win sound and the e.g "Counter-Terrorist Win", and round restart?

flyeni6 06-09-2007 16:06

Re: block Ct/T win
 
so this is not possible?

regalis 06-09-2007 16:16

Re: block Ct/T win
 
remove all objectives... :wink:

flyeni6 06-09-2007 17:00

Re: block Ct/T win
 
thx for replying :)

but how do i remove the "Terrorist Win" msg and stop the new round

[X]-RayCat 06-09-2007 17:09

Re: block Ct/T win
 
regalis is right. If maps dont have bomb entity or rescue zone round wont end. But still round will end if ct/t team dies.

Rolnaaba 06-09-2007 17:32

Re: block Ct/T win
 
I need help with this too, but I want the bomb to be able to explode and after explosion, make the CTs win...

[X]-RayCat 06-09-2007 17:48

Re: block Ct/T win
 
Quote:

Originally Posted by Rolnaaba (Post 487497)
I need help with this too, but I want the bomb to be able to explode and after explosion, make the CTs win...

You want to plus score to cts too? If so its not possible i think. But you could try just replacing the print to Counter-terrorist win or make your own scoreboard with hud and block the normal.

flyeni6 06-09-2007 19:21

Re: block Ct/T win
 
Quote:

Originally Posted by [X]-RayCat (Post 487493)
regalis is right. If maps dont have bomb entity or rescue zone round wont end. But still round will end if ct/t team dies.

yea. and im making a juggernaut plugin.

The jugg gets moved to the T side
and the rest of the people are on the CT.

so when the jugg dies, the "Counter-Terrorists Win" msg displays and a new round begins.

im trying to stop that. how? :shock:

[X]-RayCat 06-09-2007 19:51

Re: block Ct/T win
 
Quote:

Originally Posted by flyeni6 (Post 487543)
yea. and im making a juggernaut plugin.

The jugg gets moved to the T side
and the rest of the people are on the CT.

so when the jugg dies, the "Counter-Terrorists Win" msg displays and a new round begins.

im trying to stop that. how? :shock:

I dont know if you can or how to remove. Try to make other print to it with center_print.

regalis 06-09-2007 20:05

Re: block Ct/T win
 
Spawn a fake client on T team...so the round won't start because the CT win...


Code:

#define BOT_NAME "w00t regalis"

//global Variables
new bot_id
new bot_userid
new origo[3] = {0, 0, 0}

public mi_bot_connect()
{
    if (!bot_id)
    {
        bot_id = engfunc(EngFunc_CreateFakeClient, BOT_NAME)
        new ptr[128]
        dllfunc(DLLFunc_ClientConnect, bot_id, BOT_NAME, "127.0.0.1", ptr)
        dllfunc(DLLFunc_ClientPutInServer, bot_id)
        cs_set_user_team(bot_id, CS_TEAM_CT, CS_CT_URBAN)
        dllfunc(DLLFunc_Spawn, bot_id)
        set_pev(bot_id, pev_effects, (pev(bot_id, pev_effects) | 128))
        set_pev(bot_id, pev_solid, 0)
        bot_userid = get_user_userid(bot_id)
        set_user_origin(bot_id, origo)
    }
    return PLUGIN_CONTINUE
}

public mi_bot_disconnect()
{
    if (bot_id)
    {
        bot_id = 0
        server_cmd("kick #%d", bot_userid)
    }
    return PLUGIN_CONTINUE
}

greetz regalis


All times are GMT -4. The time now is 10:37.

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