Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

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


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 490
  • Lokalizacja:AMXX.PL
Offline

Napisano 24.11.2012 15:48

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 yannickhere 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;

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych