Raised This Month: $51 Target: $400
 12% 

No Ammo Deagle


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 14:46.


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