AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bot Shoot Entity (https://forums.alliedmods.net/showthread.php?t=225543)

Randomize 09-06-2013 05:37

Bot Shoot Entity
 
How to make bots shoot entity if they see it?

Another question:
How to force a round end without oprheu or Round Terminator & without kill all players? I try to slay using user_silentkill like this but it makes all players dead.

PHP Code:

public TRWin(id//kill all ct if terrorist win
{
    new 
t_players[32], ct_count
    get_players
(t_playersct_count"ae""CT")
    
    for (new 
ct_count ; ++i)
    {
        new 
t_players[i]
        
user_silentkill(x)
        
cs_set_user_deaths(xcs_get_user_deaths(x) - 1)
    }
}
public 
CTWin(id//kill all t if ct win
{
    new 
ct_players[32], t_count
    get_players
(ct_playerst_count"ae""TERRORIST")
    
    for (new 
t_count ; ++i)
    {
        new 
ct_players[i]
        
user_silentkill(x)
        
cs_set_user_deaths(xcs_get_user_deaths(x) - 1)
    }



SpaWn2KiLl 09-06-2013 08:54

Re: Bot Shoot Entity
 
I don't know how to finish the round but you can save the weapons and kevler + helmet of every alive player, then you kill them and in next round you give the weapons with the ammo of each player when they spawn... It's now a cool method but it works

"If a plan it's stupid but it works, it is not stupid" - Murphy Military Laws

Randomize 09-06-2013 09:25

Re: Bot Shoot Entity
 
SpaWn2KiLl, I have already done with it.


All times are GMT -4. The time now is 19:05.

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