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 timer, any client)
{
if( IsClientConnected(client) && IsClientInGame(client) ){
if(IsPlayerAlive(client))
{
int weaponIndex = GetPlayerWeaponSlot(client, CS_SLOT_C4);
if (weaponIndex >= 0)
{
CS_DropWeapon(client, weaponIndex, false);
}
}
}
}
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