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

sm_replen is not working accurate with csgo, need help to fix it


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yannick
Member
Join Date: Oct 2012
Old 11-24-2012 , 09:48   sm_replen is not working accurate with csgo, need help to fix it
Reply With Quote #1

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;
yannick is offline
yannick
Member
Join Date: Oct 2012
Old 11-27-2012 , 07:32   Re: sm_replen is not working accurate with csgo, need help to fix it
Reply With Quote #2

edit: the coder fixed it already

https://forums.alliedmods.net/showthread.php?t=158534

Last edited by yannick; 11-27-2012 at 07:34.
yannick is offline
Reply


Thread Tools
Display Modes

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 01:49.


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