Advertisement
EnemyGPP

Untitled

Jan 28th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. //Skin system
  2. void ServerGameLogic::ApiPlayerUpdateWeaponSkins(obj_ServerPlayer* plr)
  3. {
  4. for( std::map< uint32_t, obj_ServerPlayer::WeaponSkins >::iterator Skinids = plr->WpnSKN.begin();Skinids != plr->WpnSKN.end(); ++Skinids )
  5. {
  6. obj_ServerPlayer::WeaponSkins& SkinWpn = Skinids->second;
  7.  
  8. if (SkinWpn.itemID != 0)
  9. {
  10. //r3dOutToLog("############ GUARDANDO EN LA DB\n");
  11. for (int i = 0;i<MAX_SKINS_BY_WEAPON;i++)
  12. {
  13. if (SkinWpn.SkinsBought[i] != 99)
  14. {
  15. CJobChangeWeaponSkins* job = new CJobChangeWeaponSkins(plr);
  16. job->ItemID = SkinWpn.itemID;
  17. job->Skin = SkinWpn.SkinsBought[i];
  18. job->LastSkinUsed = SkinWpn.LastSKINused;
  19. g_AsyncApiMgr->AddJob(job);
  20. }
  21. }
  22. }
  23. }
  24. }
  25. /////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement