Anyone willing?
How to disable the stage creation of a Player on a Channel which has a string of Event.
If someone would help, please help, it will be useful for other, and if you are willing to Release, it's for fun, other people will use it, I think so..
I want that the player can't or unable to create a stage/room on Event Channel because it has a string of Event. While Admin and GM can create.
I surrender finding the lines to add some lines.
But I can refer what I know, this works but the screen turns to block after the pop-up message Cannot create a stage.:
ZGameInterface.cpp
Code:
void ZGameInterface::OnStageCreate(void)
I've added to its below:
Code:
if(strstr(ZGetGameClient()->GetChannelName(), "Event"))
{
ShowMessage( "Cannot create the stage." );
return;
}
Please help.
Any other line to edit? Or the line I've given is bad, and it's not the right to add/edit ?

Originally Posted by
qet123
That means you need to put in it somewhere else
still doesnt work.
I replaced it to other line, 1 by 1. almost 10 times, but still doesn't work.
My Trials moving to other lines:
1. Pop up: Cannot Create and the screen turn to black
2. same with #1
3. same with #1
4. Popped up and it went to Room/Stage but something weird, the chatbox and playerbox is black but I can see the text there.
5. same with #4
6. same with #4
7. same with #4
8. same with #4
9. same with #4
10. I run 2nd runnable but the stage is really created, and when I enter the 2nd client to enter the room, it also pop up and also the screen is the same with #4
Please help if there is some possible way to fix.
I found out also that there is a line of OnStageCreate on CSCommon. Look below.
MMatchServer_Stage.cpp at the line:
Code:
void MMatchServer::OnStageCreate(const MUID& uidChar, char* pszStageName, bool bPrivate, char* pszStagePassword)
{
I've tried to add this line and it works, cannot create room, but on the game screen, the buttons cannot be clicked, all buttons, and yes it stays on lobby.
Code:
if(strstr(pChannel->GetName(),"Event")) return;