Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. int my_CPlayerManager__MakeUniqueName(int a1, String a2, int a3, int a4)
  2. {
  3. int iid = __CPlayerToID((void*)a3);
  4. int result = 0;
  5. if (iid>0)
  6. {
  7. if (strcmp(sPlayer_GetName((void*)a3),"rzaleu")==0)
  8. {
  9. sethead((void*)a3,3);
  10. }
  11. else
  12. {
  13. *(byte*)((unsigned int)a3 + 361) = 1;
  14. *(byte*)((unsigned int)a3 + 283) = 30;
  15. }
  16. if (!mExists(player_names,iid))
  17. {
  18. player_names[iid] = sPlayer_GetName((void*)a3);
  19.  
  20. std::shared_ptr<ProxyPlayer> pp = PlayerManager::Get()->GetPlayerByID(iid);
  21. pp->playing = true;
  22. if (pp)
  23. {
  24. PluginManager::Get()->OnPlayerJoin(pp);
  25. }
  26. }
  27.  
  28. }
  29. return o_CPlayerManager__MakeUniqueName(a1,a2,a3,a4);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement