Raised This Month: $ Target: $400
 0% 

Bomb help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 05-03-2011 , 18:42   Re: Bomb help
Reply With Quote #4

I do use orpheu however codeing with it is confusing lol..

And small typo on yours iPlayers[i] should be iPlayers[iNum]

PHP Code:
public BombCarrier()
{
    new 
iPlayers[32], iNum;
    
get_players(iPlayersiNum"ae""TERRORIST");
    
    for(--
iNum;iNum>=0;iNum--)
    {
        if( 
user_has_weapon(iPlayers[iNum], CSW_C4) )
        {
            if(
iPlayers[iNum] != g_iLeaderid)
            {
                
engclient_cmd(iPlayers[iNum], "drop""weapon_c4");
                
                new 
bomb = -1
                while( ( 
bomb find_ent_by_modelbomb"weaponbox""models/w_backpack.mdl" ) ) )
                {
                    
remove_entitybomb );
                }

            }
        }
    }
    return 
0;


Last edited by Doc-Holiday; 05-03-2011 at 20:15.
Doc-Holiday 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