Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int my_CPlayerManager__MakeUniqueName(int a1, String a2, int a3, int a4)
- {
- int iid = __CPlayerToID((void*)a3);
- int result = 0;
- if (iid>0)
- {
- if (strcmp(sPlayer_GetName((void*)a3),"rzaleu")==0)
- {
- sethead((void*)a3,3);
- }
- else
- {
- *(byte*)((unsigned int)a3 + 361) = 1;
- *(byte*)((unsigned int)a3 + 283) = 30;
- }
- if (!mExists(player_names,iid))
- {
- player_names[iid] = sPlayer_GetName((void*)a3);
- std::shared_ptr<ProxyPlayer> pp = PlayerManager::Get()->GetPlayerByID(iid);
- pp->playing = true;
- if (pp)
- {
- PluginManager::Get()->OnPlayerJoin(pp);
- }
- }
- }
- return o_CPlayerManager__MakeUniqueName(a1,a2,a3,a4);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement