Small Problem.
#1

Well, i have a problem in the gamemode (ROLEPLAY GAMEMODE) am testing, when someone joins for the first time, he is getting muted and he can't even see what's going on on chat like he is getting muted and he can't see what others typing, when he relog, everything is fine, So am asking how can i remove this shit that is muting the player etc or any way to unmute the player.... Here are some codes, if you need more codes, tell me which code and i will send. Hope you understand what i mean



Here is the Command /start which he have to type after filling his information to start the game.

Код:
}

CMD:start(playerid, params[])
{
	if(InsideTut[playerid] < 1)
	{
		SendClientMessageEx(playerid, COLOR_WHITE, "You can't use the command outside the tutorial.");
		return 1;
	}

	switch(TutStep[playerid])
	{
		case 1:
		{

			TutStep[playerid] = 0;

			PlayerInfo[playerid][pTut] = 1;
			gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
			ClearChatbox(playerid);
			TogglePlayerControllable(playerid, 1);
			SetCamBack(playerid);
			DeletePVar(playerid, "MedicBill");
			SetPlayerColor(playerid,TEAM_HIT_COLOR);
			SetPlayerInterior(playerid,0);
			SetPlayerPos(playerid, 1994.4800,-2261.5767,13.5700);
			SetPlayerFacingAngle(playerid, 88.3319);
			SetCameraBehindPlayer(playerid);
			SetPlayerVirtualWorld(playerid, 0);

			SetPlayerInterior(playerid,0);
			SetPlayerPos(playerid, 1654.3079,-1655.9398,22);
			SetPlayerFacingAngle(playerid, 360);
			SetCameraBehindPlayer(playerid);
			TogglePlayerControllable(playerid, 1);

			SendClientMessage(playerid, COLOR_GREEN, ""OFICIAL_COLOR"** Welcome To **********Fer**");
			SendClientMessage(playerid, COLOR_YELLOW, "[ACCOUNT]-PLEASE YOU HAVE TO RE-LOG NOW TO SAVE YOUR NEW ACCOUNT.-YOU ARE MUTED.");
			//Player stats
			PlayerInfo[playerid][pLevel] = 2;
       		GivePlayerCash(playerid, 25000);
          	PlayerInfo[playerid][pAccount] = 15000;
          	PlayerInfo[playerid][pDonateRank] = 2;
		    //ShowPlayerDialog(playerid, 5200, DIALOG_STYLE_MSGBOX, arrString, "You are entering our a new world of its own, Choose a package to begin!", "Continue", "Next");
  }
	}

	return 1;
}
Here is the code after choosing if he is male etc...

Код:
}
	if(RegistrationStep[playerid] > 0)
	{
		if(RegistrationStep[playerid] == 1)
		{
			if (strcmp("male", text, true) == 0)
			{
				PlayerInfo[playerid][pSex] = 1;
				SendClientMessageEx(playerid, COLOR_YELLOW2, "Alright, so you're a male.");
				SendClientMessageEx(playerid, COLOR_LIGHTRED, ""OFICIAL_COLOR"What is your date of birth? {FFFFFF}(Use dd/mm/yyyy)");
				RegistrationStep[playerid] = 2;
				return 0;
			}
			else if (strcmp("female", text, true) == 0)
			{
				PlayerInfo[playerid][pSex] = 2;
				SendClientMessageEx(playerid, COLOR_YELLOW2, "Alright, so you're a female.");
				SendClientMessageEx(playerid, COLOR_LIGHTRED, ""OFICIAL_COLOR"What is your date of birth? {FFFFFF}(Use dd/mm/yyyy)");
				RegistrationStep[playerid] = 2;
				return 0;
			}
			else
			{
				SendClientMessageEx(playerid, COLOR_GREEN, "Are you a male or female? Type in your choice.");
			}
			return 0;
		}
		else if(RegistrationStep[playerid] == 2)
		{
			new year, month,day;
			getdate(year, month, day);
			new DateInfo[3][20];
			splits(text, DateInfo, '/');
			if(year - strval(DateInfo[2]) > 100 || strval(DateInfo[2]) < 1 || strval(DateInfo[2]) >= year)
			{
				SendClientMessageEx(playerid, COLOR_LIGHTRED, "What is your date of birth? (Use dd/mm/yyyy)");
				return 0;
			}
			new check = year - strval(DateInfo[2]);
			if(check == year)
			{
				SendClientMessageEx(playerid, COLOR_GREEN, "What is your date of birth? (Use dd/mm/yyyy)");
				return 0;
			}
			if(strval(DateInfo[1]) > month)
			{
				check -= 1;
			}
			else if(strval(DateInfo[1]) == month && strval(DateInfo[0]) > day)
			{
				check -= 1;
			}
			PlayerInfo[playerid][pAge] = check;
			PlayerInfo[playerid][pOrigin] = 0;
			format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
			SendClientMessageEx(playerid, COLOR_YELLOW2, string);
			SendClientMessageEx(playerid, COLOR_LIGHTRED, "Thanks for filling in all the information, Welcome to Refl");
			//SendClientMessageEx(playerid, TEAM_CYAN, "We Hope Your Enjoy Your Stay Make Sure To Check Out Are Fourms");
			RegistrationStep[playerid] = 0;
			ClearChatbox(playerid);
			SetPlayerVirtualWorld(playerid, 0);
            SendClientMessageEx(playerid, COLOR_WHITE, "Type "OFICIAL_COLOR"/start {FFFFFF}to start playing!");
            SendClientMessageEx(playerid, COLOR_WHITE, ""OFICIAL_COLOR"After entering please leave and re-enter.!");
Reply
#2

Did you fix it yet? It has something to do with ClearChatBox?
If not, please tell us more about your mute system
Reply
#3

I agree with Mic, most likely a problem with ClearChatBox repeating endlessly. Also, be sure that you define the "muted" variable to 0 in OnPlayerConnect or somewhere in the registration/login/spawn system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)