Hello,
the plugin
sm_replen is bugged with cs:go since they added new weapons or renamed them. I've tried to fix it by myself but i stucking at the gun names. I don't know how to get the correct names of the weapons, so can someone help me? how do i get the names of p250 for example?
regards yannick
here is a part of the complied file:
Code:
stock CacheClipSize(client_index, const String:sz_item[])
{
// Convert first 4 characters of item into an integer for fast comparison (little endian byte ordering)
// sizeof(sz_item) must be >= 4
new gun = (sz_item[3] << 24) + (sz_item[2] << 16) + (sz_item[1] << 8) + (sz_item[0]);
if (gun==0x30316D78) // xm1014
g_PlayerPrimaryAmmo[client_index]=7;
else if (gun==0x0000336D) // m3
g_PlayerPrimaryAmmo[client_index]=8;
else if (gun==0x756F6373 || gun==0x00707761) // scout or awp
g_PlayerPrimaryAmmo[client_index]=10;
else if (gun==0x67733367) // g3sg1
g_PlayerPrimaryAmmo[client_index]=20;
else if (gun==0x616D6166 || gun==0x34706D75) // famas or ump45
g_PlayerPrimaryAmmo[client_index]=25;
else if (gun==0x35356773 || gun==0x37346B61 || gun==0x00677561 // sg55x, ak47, aug
|| gun==0x3161346D || gun==0x6E35706D || gun==0x00706D74 || gun==0x3163616D) // m4a1, mp5navy, tmp, mac10
g_PlayerPrimaryAmmo[client_index]=30;
else if (gun==0x696C6167) // galil
g_PlayerPrimaryAmmo[client_index]=35;
else if (gun==0x00303970) // p90
g_PlayerPrimaryAmmo[client_index]=50;
else if (gun==0x3934326D) // m249
g_PlayerPrimaryAmmo[client_index]=100;
else if (gun==0x67616564) // deagle
g_PlayerSecondaryAmmo[client_index]=7;
else if (gun==0x00707375) // usp
g_PlayerSecondaryAmmo[client_index]=12;
else if (gun==0x38323270) // p228
g_PlayerSecondaryAmmo[client_index]=13;
else if (gun==0x65766966 || gun==0x636F6C67) // fiveseven, glock
g_PlayerSecondaryAmmo[client_index]=20;
else if (gun==0x74696C65) // elite
g_PlayerSecondaryAmmo[client_index]=30;