Raised This Month: $ Target: $400
 0% 

[CS] Silent bomb removing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 01-22-2013 , 11:06   [CS] Silent bomb removing
Reply With Quote #1

Hello. I read some topics about this..
But a can't find a better way.
1. Is possible remove bomb from spawned players without any text\chat messages (player dropped the bomb), red icons (when you lose c4 with cs_set_user_bpammo(player, CSW_C4, 0)), etc?
I tried some variants.. For example:

PHP Code:
register_logevent("logevent_function_p"3"2=Spawned_With_The_Bomb");

public 
logevent_function_p()
{
    new 
players[32], inum
    get_players
(playersinum)
    
    for (new 
0inum; ++i)
    {
        if(
user_has_weapon(players[i], CSW_C4))
        {
            
cs_set_user_bpammo(players[i], CSW_C40)
            
cs_set_user_plant(players[i], 00)
        }
    }

This way is good, when you playing alone (or with 1 enemy). When count of players > 2, every spawn of T player adds c4 to you. Or red point on radar does not removes, or bomb can not be removed, if bomb is dropped, or player marked as a "BOMB" in scoreboard (when player did't have a c4)..

One note: do not use removing func / info _bomb_target. Plugin-remover C4 should work some time (ex. 2 minutes from map start (warm up mod)).

2. when i use cs_set_user_plant, player's status in scoreboard updates ONLY AFTER death. Is possible to update status immediately?
__________________
sorry my bad english...

Last edited by alonelive; 01-22-2013 at 11:10.
alonelive is offline
 



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 20:29.


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