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
}
}
}
__________________