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

[CSGO] Deagle keeps spawning with a clip.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheeDeer
Junior Member
Join Date: Dec 2016
Old 03-24-2017 , 20:27   [CSGO] Deagle keeps spawning with a clip.
Reply With Quote #1

I am trying to drop an empty Deagle at the player's feet however it spawns with 7 rounds still...

Code:
Quote:
new iEnt = CreateEntityByName("weapon_deagle");

if (IsValidEntity(iEnt))
{
new Floatrigin[3];
GetClientAbsOrigin(client, origin);
SetEntProp(iEnt, Prop_Data, "m_iPrimaryAmmoCount", 0);
SetEntProp(iEnt, Prop_Data, "m_iSecondaryAmmoCount", 0); //Still drops with 7 rounds for some reason...?
DispatchSpawn(iEnt);
origin[0] += 20.0;
TeleportEntity(iEnt, origin, NULL_VECTOR, NULL_VECTOR);
DeagleCount++;
}
TheeDeer is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 03-24-2017 , 21:29   Re: [CSGO] Deagle keeps spawning with a clip.
Reply With Quote #2

try
PHP Code:
SetEntProp(iEntProp_Data"m_iSecondaryAmmoCount"0);
SetEntProp(iEntProp_Send"m_iClip1"0); 
m_iPrimaryAmmoCount = ammo loaded in a primary weapon (like ak,m4,...)
m_iSecondaryAmmoCount = ammo loaded in a secondary weapon (like pistols...)
m_iClip1 = ammo of the reserve ammo magazine
__________________
coding & free software
shanapu is offline
Reply



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 18:50.


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