Thread: No Ammo Deagle
View Single Post
Author Message
PreetyAnonym
BANNED
Join Date: Feb 2019
Old 02-13-2019 , 02:48   No Ammo Deagle
Reply With Quote #1

I tried make a plugin that give a player deagle with no ammo and I used this code but the client keep getting deagle with full ammo
PHP Code:
    if (IsClientInGame(client) && GetClientTeam(client) == CS_TEAM_CT || IsClientInGame(client) && GetClientTeam(client) == CS_TEAM_T && CheckCommandAccess(client"sm_admin"ADMFLAG_GENERIC))
    {
        
PrintToChatAll("%s All the terrorist got empty deagle!"PREFIX);
        for (
int i 1<= MaxClientsi++)
        if (
IsClientInGame(i) && GetClientTeam(i) == CS_TEAM_T && IsPlayerAlive(i))
        {
            
Client_RemoveAllWeapons(i);
            
Client_GiveWeaponAndAmmo(i"weapon_deagle"true0000);
            return 
Plugin_Handled;
        }
    } 

Last edited by PreetyAnonym; 02-13-2019 at 02:49.
PreetyAnonym is offline