Raised This Month: $ Target: $400
 0% 

Removing C4 on C4 map CS:S


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Tallio
Member
Join Date: Mar 2016
Old 03-14-2016 , 22:21   Removing C4 on C4 map CS:S
Reply With Quote #1

Hello Guys
I m looking for the way to remove the C4 mod on a C4 dedicated map...

I used this :

PHP Code:
public Action DropC4(Handle timerany client)
{
    if( 
IsClientConnected(client) && IsClientInGame(client) ){
        if(
IsPlayerAlive(client))
        {
            
int weaponIndex GetPlayerWeaponSlot(clientCS_SLOT_C4);
            if (
weaponIndex >= 0)
            {
                
CS_DropWeapon(clientweaponIndexfalse);
            }
        }
    }

But each time the C4 is dropped on the map, as soon after someone else on the T team get the C4 instead of my player... systematicaly
Tallio 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 00:27.


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