View Single Post
sojio12
New Member
Join Date: Jan 2022
Old 02-21-2022 , 20:17   Re: [CSGO] Case Opening(1.4.0b) UPDATED 20th feb. 2022
Reply With Quote #46

just need to check for a fake client.)
-----------------------------------------------------
L 02/22/2022 - 04:13:20: [SM] Exception reported: Client index 1 is a bot
L 02/22/2022 - 04:13:20: [SM] Blaming: shop.smx
L 02/22/2022 - 04:13:20: [SM] Call stack trace:
L 02/22/2022 - 04:13:20: [SM] [0] ThrowNativeError
L 02/22/2022 - 04:13:20: [SM] [1] Line 94, addons/sourcemod/scripting/shop/player_manager.sp:layerManager_SetClientCre dits
L 02/22/2022 - 04:13:20: [SM] [3] Shop_SetClientCredits
L 02/22/2022 - 04:13:20: [SM] [4] Line 103, inc/helpers.inc::SetBalance
L 02/22/2022 - 04:13:20: [SM] [5] Line 233, C:\Users\kRatoss\Desktop\Sourcemod Projects\Releases\Case-Opening\scripting\csgo_case_opening.sp::OnCli entCookiesCached

Quote:
public void OnClientCookiesCached(int iClient)
{
if(IsNewPlayer(iClient) && IsFakeClient(iClient) == false)
{
SetBalance(iClient, g_fDefaultBalance);
}
}

Last edited by sojio12; 02-21-2022 at 20:25.
sojio12 is offline