Raised This Month: $ Target: $400
 0% 

Bomb help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-03-2011 , 17:54   Re: Bomb help
Reply With Quote #3

If you use orpheu, i think i have seen some usefull function to retrieve either bomb either bomb carrier.

Method above seems fine though.

EDIT :
Excepted flags wrong usage...

PHP Code:
get_bomb_carrier()
{
    new 
iPlayers[32], iNum
    get_players
(iPlayersiNum"ae""TERRORIST")
    for(--
iNumiNum>=0iNum--)
    {
        if( 
user_has_weapon(iPlayers[i], CSW_C4) )
        {
            return 
iPlayers[i]
        }
    }
    return 
0

Note that you could replcae user_has_weapon with cs_get_user_defuse.

Then, do:
engclient_cmd(player, "drop", "weapon_c4")
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-03-2011 at 17:59.
ConnorMcLeod 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 04:29.


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