❓ how to kick player

Posts 1–3 of 3 · Page 1 of 1
❓ how to kick player
Code:
AWorldInfo *pWorldInfo = avaNetHandler->GetWorldInfo();
AAccessControl *AccessControl;

if (pWorldInfo != NULL 
	&& pWorldInfo->GRI != NULL 
	&& pWorldInfo->GRI->GameClass != NULL)
{
	avaGame = pWorldInfo->GRI->GameClass->GetDefaultObject<AavaGame>();
	if (avaGame != NULL 
		&& avaGame->AccessControlClass != NULL)
	{
		AccessControl = avaGame->AccessControlClass->GetDefaultObject<AAccessControl>();
		if (AccessControl != NULL)
		{							
			// AccessControl->KickPlayer(pTargetController, AccessControl->DefaultKickReason); // crash
			// AccessControl->Kick(pTargetRepInfo->PlayerName);					 // crash
		}
	}
}

//

avaNetHandler->RequestPartyKickPlayer(pTargetRepInfo->PlayerName, GetAccountID(pTarget), 0); // nothing happens
why..?
Quote Originally Posted by johnboker View Post
solved ^o^
i have same problem..
i don't why..
can you share your code or give me some tips?
I appreciate your kind assistance.
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us