Roleplay Gamemode Chat Bug
#6

Quote:
Originally Posted by John_Black96
Посмотреть сообщение
Here is the OnPlayerText!
Your public OnPlayerText looks okay, but give it a try: (backup your original public)

Код:
public OnPlayerText(playerid, text[]) 
{
	new string[128];
	if(GetPVarInt(playerid, "InCall911") != 0) 
	{
		if(PlayerInfo[playerid][pLeader] == 1) format(string, sizeof(string), "[911] %s(%d): %s", pName(playerid), playerid, text);
		if(PlayerInfo[playerid][pLeader] != 1) format(string, sizeof(string), "[911] %s(%d): %s", pName(playerid), playerid, text);
		SendSplitMessageNormal(GetPVarInt(playerid, "InCall911"), COLOR_WHITE, string);
		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
		printf(string);
		return 0;
	}

	if(Mobile[playerid] != 255) 
	{
		ApplyAnimation(playerid,"PED","phone_talk",4.1,0,1 ,1,1,1);
		if(!IsPlayerConnected(Mobile[playerid])) {
		if(!IsPlayerInAnyVehicle(playerid)) { CreaInfoTDRight(playerid, "We.", 4000); }
		if(IsPlayerInAnyVehicle(playerid)) { SetTimerEx("timePCA", 2000, false,"i", playerid); }
		Mobile[playerid] = 255; InCellulare[playerid] = 0; 
	}
	if(IsPlayerConnected(Mobile[playerid]) && Mobile[Mobile[playerid]] != playerid) 
	{
		CreaInfoTDRight(playerid, "Il Player non ha ancora Risposto!", 5000); 
	}
		
	if(IsPlayerConnected(Mobile[playerid]) && Mobile[Mobile[playerid]] == playerid) 
	{
	new caller = Mobile[playerid];
	if(PlayerInfo[playerid][pMaskuse] == 1 || PlayerInfo[playerid][pCascoUse] == 1) 
	{ 
		format(string, sizeof(string), "Sconosciuto %d dice (cellulare): %s", VarCodeMask[playerid], text); 
	}
	if(PlayerInfo[playerid][pMaskuse] == 0 && PlayerInfo[playerid][pCascoUse] == 0) { format(string, sizeof(string), "%s dice (cellulare): %s", pName(playerid), text); 
	}
		ProxDetector(15.0, playerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,CO LOR_FADE5);
		SendSplitMessageNormal(caller, COLOR_WHITE, string); 
		return 0;
	}

	if(PlayerInfo[playerid][pMaskuse] == 1 || PlayerInfo[playerid][pCascoUse] == 1) 
	{
		format(string, sizeof(string), "Sconosciuto %d dice: %s", VarCodeMask[playerid], text);
		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
		printf(string);
		return 0;
	}
	if(PlayerInfo[playerid][pCascoUse] == 0 && PlayerInfo[playerid][pMaskuse] == 0) 
	{
		format(string, sizeof(string), "%s dice: %s", pName(playerid), text); 
		ProxDetector(20.0, playerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,CO LOR_FADE5);
		printf(string);
	}
	return 0;
}
Reply


Messages In This Thread
Roleplay Gamemode Chat Bug - by John_Black96 - 05.04.2014, 16:05
Re: Roleplay Gamemode Chat Bug - by Lidor124 - 05.04.2014, 16:07
Re: Roleplay Gamemode Chat Bug - by Sledgehammer - 05.04.2014, 16:07
Re: Roleplay Gamemode Chat Bug - by John_Black96 - 05.04.2014, 16:49
Re: Roleplay Gamemode Chat Bug - by John_Black96 - 07.04.2014, 15:45
Re: Roleplay Gamemode Chat Bug - by Lidor124 - 07.04.2014, 16:08

Forum Jump:


Users browsing this thread: 1 Guest(s)