Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

room create prevention xD

Joined
Jul 11, 2012
Messages
786
Reaction score
190
well I was wondering, how can I prevent players making a room in event channel.. (I mean to let staff only making a room there xD).. is it in source code or XML xD ?
 
Good Guy George
Member
Joined
Apr 12, 2009
Messages
1,260
Reaction score
239
It's source... check the channel name and if 'isadmingrade'
 
Upvote 0
Custom Title Activated
Member
Joined
Feb 18, 2012
Messages
1,433
Reaction score
391
Use Game-Serv/National Gunz Source files and search for it there, rom creation prevention is in there.
 
Upvote 0
Experienced Elementalist
Joined
Jul 15, 2012
Messages
201
Reaction score
2
Use Game-Serv/National Gunz Source files and search for it there, rom creation prevention is in there.
Code:
			if(strstr(strlwr((char*)ZGetGameClient()->GetChannelName()), "event") && !ZGetMyInfo()->IsAdminGrade())
			{
				ZApplication::GetGameInterface()->ShowMessage("Staff members only can make a room in the Event Channel.");
				pFindWidget->Show(false, false);
				return false;
			}
Found it for you.
Its in ZInterfaceListener.cpp under
Code:
class MStageCreateFrameCallerListener : public MListener{
 
Upvote 0
Hi, I'm Omar!
Member
Joined
Jan 6, 2011
Messages
1,345
Reaction score
646
Code:
			if(strstr(strlwr((char*)ZGetGameClient()->GetChannelName()), "event") && !ZGetMyInfo()->IsAdminGrade())
			{
				ZApplication::GetGameInterface()->ShowMessage("Staff members only can make a room in the Event Channel.");
				pFindWidget->Show(false, false);
				return false;
			}
Found it for you.
Its in ZInterfaceListener.cpp under
Code:
class MStageCreateFrameCallerListener : public MListener{

I remember writing that, hue.
 
Upvote 0
Joined
Jul 11, 2012
Messages
786
Reaction score
190
Code:
			if(strstr(strlwr((char*)ZGetGameClient()->GetChannelName()), "event") && !ZGetMyInfo()->IsAdminGrade())
			{
				ZApplication::GetGameInterface()->ShowMessage("Staff members only can make a room in the Event Channel.");
				pFindWidget->Show(false, false);
				return false;
			}
Found it for you.
Its in ZInterfaceListener.cpp under
Code:
class MStageCreateFrameCallerListener : public MListener{
Thanks all for helping I appreciate that <3
WORKED DELETE
 
Upvote 0
Back
Top