Okay i've solved the problem
The problem was when a map change occurs, all the players disconnect, and when they disconnect this happens:
Code:
public artifacts_disconnect(id)
{
Save_SQLite(id)
g_Crates[id] = 0
g_Keys[id] = 0
g_M4A1[id] = 0
g_AK47[id] = 0
g_DEAGLE[id] = 0
g_AWP[id] = 0
g_KNIFE[id] = 0
}
As you can see above, the player's data save, and then it's set to 0, then when the Plugin ends!, all player's data is saved, Which means the "0" from above, is saved also, because on map change, plugin end occurs after disconnect.
Thank you Black Rose! putting log_amx to see the problem helped me alot
__________________