View Single Post
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