View Single Post
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-28-2020 , 07:48   Re: Save for certain steams
Reply With Quote #2

Code:
new const AUTH_LIST[][MAX_AUTHID_LENGTH] = {     "steam one",     "steam two" } LoadData(id) {     new auth[MAX_AUTHID_LENGTH]     get_user_authid(id, auth, charsmax(auth))     for (new i = 0; i < sizeof AUTH_LIST; i++)     {         if (equali(auth, AUTH_LIST[i]))         {             new szKey[40]             formatex(szKey, 39, "%sZPAP", auth)             new iAmmo = nvault_get(hVaultHandle, szKey)             #if defined IM_USING_ZP50             zp_ammopacks_set(id, iAmmo)             #else             zp_set_user_ammo_packs(id, iAmmo)             #endif             bIsLoaded[id] = true             break         }     } }
__________________









Last edited by CrazY.; 10-28-2020 at 07:48.
CrazY. is offline