CrashDetect Plugin Error
#5

Код HTML:
CMD:stats(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		if(PlayerLogged[playerid])
		{
			ShowStats(playerid,playerid);
		}
		else return SCM(playerid,-1,"You are not logged in!");
	}
	return 1;
}
Код HTML:
public ShowStats(playerid, targetid)
{
    if(IsPlayerConnected(playerid) && IsPlayerConnected(targetid))
	{
		new param1[64],param2[64],param3[64],param4[64],param69[64],param59[64],param70[64],param100[64];
	    new nxtlevel = playerVariables[targetid][pLevel];
		new expamount = nxtlevel*levelexp;

		switch(playerVariables[targetid][pGender])
		{
			case 1: param2 = "Male";
			case 2: param2 = "Female";
			default: param2 = "Unknown";
		}
		new param20[32];
		if(playerVariables[targetid][pPhoneNumber] != -1)
		{
			format(param20,sizeof(param20),"%d",playerVariables[targetid][pPhoneNumber]);
		}
		else
		{
			param20 = "None";
		}
		if(playerVariables[targetid][pJob] == 0)
		{
			param1 = "Unemployed";
		}
		else
		{
			strcpy(param1, jobVariables[playerVariables[targetid][pJob]][jJobName], sizeof(param1));
	 	}
		if(playerVariables[targetid][pGroup] < 1)
		{
			param1 = "None";
			param2 = "None";
		}
		else
		{
			format(param1, sizeof(param1), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupName]);
			switch(playerVariables[targetid][pGroupRank])
			{
				case 1: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName1]);
				case 2: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName2]);
				case 3: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName3]);
				case 4: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName4]);
				case 5: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName5]);
				case 6: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName6]);
				case 7: format(param2, sizeof(param2), "%s", groupVariables[playerVariables[targetid][pGroup]][gGroupRankName7]);
				default: format(param2, sizeof(param2),"None");
			}
		}
		if(playerVariables[targetid][pWalkieTalkie] == -1) param3 = "None";
		else if(playerVariables[targetid][pWalkieTalkie] == 0) param3 = "Disabled";
		else format(param3, sizeof(param3), "#%d khz", playerVariables[targetid][pWalkieTalkie]);

		new donator[12];
		if(playerVariables[targetid][pDonate] == 0) donator = "No";
		else format(donator, sizeof(donator), "Yes");

		if(playerVariables[targetid][pCarModel1] >= 400)
		{
			format(param4, sizeof(param4), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel1] - 400], playerVariables[targetid][pCarID1]);
		}
		else
		{
			param4 = "None";
		}
		if(playerVariables[targetid][pCarModel2] >= 400)
		{
			format(param69, sizeof(param4), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel2] - 400], playerVariables[targetid][pCarID2]);
		}
		else
		{
			param69 = "None";
		}
		if(playerVariables[targetid][pCarModel3] >= 400)
		{
			format(param59, sizeof(param59), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel3] - 400], playerVariables[targetid][pCarID3]);
		}
		else
		{
			param59 = "None";
		}
		if(playerVariables[targetid][pCarModel4] >= 400)
		{
			format(param70, sizeof(param70), "%s (ID %d)", VehicleNames[playerVariables[targetid][pCarModel4] - 400], playerVariables[targetid][pCarID4]);
		}
		else
		{
			param70 = "None";
		}
		if(playerVariables[targetid][pClan] < 1)
		{
			param1 = "None";
			param100 = "None";
		}
		else
		{
			format(param1, sizeof(param1), "%s", clanVariables[playerVariables[targetid][pClan]][cClanName]);
			switch(playerVariables[targetid][pClanRank])
			{
				case 1: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName1]);
				case 2: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName2]);
				case 3: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName3]);
				case 4: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName4]);
				case 5: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName5]);
				case 6: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName6]);
				case 7: format(param100, sizeof(param100), "%s", clanVariables[playerVariables[targetid][pClan]][cClanRankName7]);
			}
		}
		new ys, ms, ds;
		getdate(ys,ms,ds);
		//for(new i = 9; i < strlen(cstr); i++) strcat(line,"_",255);
		format(szMessage, sizeof(szMessage),"*** %s ***",playerVariables[targetid][pNormalName]);
        format(szMessage, sizeof(szMessage),"%s"color_orange"\t\t\t\t\t\t"color_green"Stats     ",szMessage);
 		format(szMessage, sizeof(szMessage),"%s"color_orange"\t\t\t\t\t\t"color_green" %02d.%02d.%02d\n\n\n",szMessage,ds,ms,ys);
	//	SendClientMessage(playerid, COLOR_TEAL, line);
		format(szMessage, sizeof(szMessage), "Age: %d | Gender: %s | Respect Points: %d/%d | Level: %d | Playing hours: %d | Phone number: %s | Job: %s\n",playerVariables[targetid][pAge],param2,playerVariables[targetid][pRPoints], expamount, playerVariables[targetid][pLevel], playerVariables[targetid][pPlayingHours],param20,param1);
	//	SendClientMessage(playerid, COLOR_WHITE, szMessage);
		format(szMessage, sizeof(szMessage), "Group: %s | Rank: %s (%d) | Bank: $%d | Cash: $%d | Materials: %d | Radio: %s\n", param1, param2, playerVariables[targetid][pGroupRank], playerVariables[targetid][pBankMoney], playerVariables[targetid][pMoney], playerVariables[targetid][pMaterials], param3);
	//	SendClientMessage(playerid, COLOR_WHITE, szMessage);
		format(szMessage, sizeof(szMessage), "Arrests: %d | Crimes: %d | Credit: $%d | Warns: %d/3 | Rob Points: %d/10 | Premium: %s(%d points) | FW: %d/3 | FP: %d/20\n",playerVariables[targetid][pArrests], playerVariables[targetid][pCrimes], playerVariables[targetid][pPhoneCredit],playerVariables[targetid][pWarns],playerVariables[targetid][pRobPoints],donator,playerVariables[targetid][pPremiumPoints],playerVariables[targetid][pFWarns],playerVariables[targetid][pFPunish]);
	//	SendClientMessage(playerid, COLOR_WHITE, szMessage);
		
		format(szMessage, sizeof(szMessage), "Admin Level: %d | House: %d | Business: %d | Drugs: %dg | Clan: %s | Rank: %s (%d)\n",playerVariables[targetid][pAdminLevel], getPlayerHouseID(targetid), getPlayerBusinessID(targetid),playerVariables[targetid][pDrugs], param1, param100,playerVariables[targetid][pClanRank]);
		//SendClientMessage(playerid, COLOR_WHITE, szMessage);

		format(szMessage, sizeof(szMessage), "Vehicle 1: %s | Vehicle 2: %s | Vehicle 3: %s | Vehicle 4: %s\n",param4,param69,param59,param70);
	//	SendClientMessage(playerid, COLOR_WHITE, szMessage);

		new Float:HAFloats[2];
		GetPlayerHealth(targetid,HAFloats[0]);
		GetPlayerArmour(targetid,HAFloats[1]);
		//new country[MAX_COUNTRY_NAME];
		//GetCountryName(playerVariables[targetid][pConnectionIP], country, sizeof(country));
		if(playerVariables[playerid][pAdminLevel] >= 1)
		{
			switch(playerVariables[targetid][pPrisonID])
			{
					case 0: format(szMessage, sizeof(szMessage), "IP: %s | Health: %.1f | Armour: %.1f\n", playerVariables[targetid][pConnectionIP],HAFloats[0], HAFloats[1]);
					case 1: format(szMessage, sizeof(szMessage), "IP: %s | Health: %.1f | Armour: %.1f | Admin Prison Time: %d\n", playerVariables[targetid][pConnectionIP], HAFloats[0], HAFloats[1], playerVariables[targetid][pPrisonTime]);
					case 2: format(szMessage, sizeof(szMessage), "IP: %s | Health: %.1f | Armour: %.1f | Admin Jail Time: %d\n", playerVariables[targetid][pConnectionIP], HAFloats[0], HAFloats[1], playerVariables[targetid][pPrisonTime]);
					case 3: format(szMessage, sizeof(szMessage), "IP: %s | Health: %.1f | Armour: %.1f | Jail Time: %d\n", playerVariables[targetid][pConnectionIP], HAFloats[0], HAFloats[1], playerVariables[targetid][pPrisonTime]);
			}
			//SendClientMessage(playerid, COLOR_ASKQ, szMessage);
		}
		//for(new i = 9; i < strlen(cstr); i++) strcat(line,"_",255);
		new wep[10],ammo[10],gtext[10][30],wname[36];
		GetPlayerWeaponData(targetid,1, wep[0],ammo[0]);  // Melee 1
		GetPlayerWeaponData(targetid,10,wep[1],ammo[1]);  // Melee 2
		GetPlayerWeaponData(targetid,2, wep[2],ammo[2]);  // Pistol
		GetPlayerWeaponData(targetid,3, wep[3],ammo[3]);  // Shotgun
		GetPlayerWeaponData(targetid,4, wep[4],ammo[4]);  // Smg
		GetPlayerWeaponData(targetid,5, wep[5],ammo[5]);  // Assault
		GetPlayerWeaponData(targetid,6, wep[6],ammo[6]);  // Sniper
		GetPlayerWeaponData(targetid,7, wep[8],ammo[8]);  // Heavy Assault
		GetPlayerWeaponData(targetid,8, wep[9],ammo[9]);  // Grenades
		GetPlayerWeaponData(targetid,9, wep[7],ammo[7]);  // Special weapons
		// Slot 11 ( parachute , thermal ) & 12  ( detonator ) - aren't here

		if(wep[0] > 0) { GetWeaponName(wep[0],wname,sizeof wname); format(gtext[0],30,"%s%c",wname,0x2C); }
		if(wep[1] > 0) { GetWeaponName(wep[1],wname,sizeof wname); format(gtext[1],30,"%s%c",wname,0x2C); }
		if(wep[2] > 0 && ammo[2] > 0) { GetWeaponName(wep[2],wname,sizeof wname); format(gtext[2],30,"%s(%d)%c",wname,ammo[2],0x2C); }
		if(wep[3] > 0 && ammo[3] > 0) { GetWeaponName(wep[3],wname,sizeof wname); format(gtext[3],30,"%s(%d)%c",wname,ammo[3],0x2C); }
		if(wep[4] > 0 && ammo[4] > 0) { GetWeaponName(wep[4],wname,sizeof wname); format(gtext[4],30,"%s(%d)%c",wname,ammo[4],0x2C); }
		if(wep[5] > 0 && ammo[5] > 0) { GetWeaponName(wep[5],wname,sizeof wname); format(gtext[5],30,"%s(%d)%c",wname,ammo[5],0x2C); }
		if(wep[6] > 0 && ammo[6] > 0) { GetWeaponName(wep[6],wname,sizeof wname); format(gtext[6],30,"%s(%d)%c",wname,ammo[6],0x2C); }
		if(wep[7] > 0 && ammo[7] > 0) { GetWeaponName(wep[7],wname,sizeof wname); format(gtext[7],30,"%s(%d)%c",wname,ammo[7],0x2C); }
		if(wep[8] > 0 && ammo[8] > 0) { GetWeaponName(wep[8],wname,sizeof wname); format(gtext[8],30,"%s(%d)%c",wname,ammo[8],0x2C); }
		if(wep[9] > 0 && ammo[9] > 0) { GetWeaponName(wep[9],wname,sizeof wname); format(gtext[9],30,"%s(%d)%c",wname,ammo[9],0x2C); }

		if(wep[0] || wep[1] || wep[2] || wep[3] || wep[4] || wep[5] || wep[6] || wep[7] || wep[8] || wep[9])
		{
			format(szMessage,sizeof szMessage,"%s"color_red"Arme"wh":%s%s%s%s%s%s%s%s%s%s\n",szMessage,gtext[0],gtext[1],gtext[2],gtext[3],gtext[4],gtext[5],gtext[6],gtext[7],gtext[8],gtext[9]);
			if(szMessage[strlen(szMessage)-1] == 44) szMessage[strlen(szMessage)-1] = 0x20;
		}
		else format(szMessage,sizeof szMessage,"%s"color_red"Arme"wh":[Fara]\n",szMessage);
		ShowPlayerDialog(playerid, 65182, DIALOG_STYLE_MSGBOX, "Status", szMessage, "Iesi", "" );
		//SendClientMessage(playerid, COLOR_TEAL, line);
	}
	else
	{
	    return SCM(playerid,-1,"You are not connected, or that player isn't connected");
	}
	return 1;
}
Код HTML:
public SetPlayerUnjail()
{
    if(painttime > 0)
	{
		foreach(Player, x)
		{
			foreach(Player, a)
			{
				if(PlayerPaintballing[x] != 0 && PlayerPaintballing[a] != 0)
				{
					SetPlayerMarkerForPlayer(x, a, GetPlayerColor(a));
				}
			}
		}	
	    painttime--;
	    /*if(painttime == 0)
	    {
			foreach(Player, x)
			{
	    		foreach(Player, a)
				{
					if(PlayerPaintballing[x] == 0 && PlayerPaintballing[a] == 0)
					{
						SetPlayerMarkerForPlayer( x, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
					}
				}
			}	
	    }*/
	}
	foreach(Player, z)
	{
	    if(playerVariables[z][pDD] >= 1)
	    {
			playerVariables[z][pDD] --;
		}
		if(playerVariables[z][pDs] >= 1)
	    {
			playerVariables[z][pDs] --;
		}
		if(playerVariables[z][pDr] >= 1)
	    {
			playerVariables[z][pDr] --;
		}
	}
	for(new iGroup=0; iGroup < MAX_GROUPS; iGroup++)
	{
	    if(groupVariables[iGroup][gDeelay] >= 1)
	    {
        	groupVariables[iGroup][gDeelay]--;
        }
	}
	for(new i=0; i < sizeof(TurfInfo); i++)
	{
	    new string[128];
	    new count = 0;
	    new att = WarInfo[i][wAttacker];
		new deff = WarInfo[i][wFaction];
	    if(WarInfo[i][wTime] > 0)
	    {
	        WarInfo[i][wTime] -= 1;
            foreach(Player, x)
			{
			    if(playerVariables[x][pGroup] == WarInfo[i][wAttacker])
			    {
	 				if(IsPlayerInTurf(x , i))
					{
					    count++;
					}
				}

				/*if(groupVariables[playerVariables[x][pGroup]][gInWar] == 0)
				{
					foreach(Player, a)
					{
						SetPlayerMarkerForPlayer( x, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
					}
				}*/
		 		if(playerVariables[x][pGroup] == WarInfo[i][wAttacker] || playerVariables[x][pGroup] == WarInfo[i][wFaction])
			    {
					new time = WarInfo[i][wTime];
					TextDrawShowForPlayer(x, tTimer[x]);					
					format(string, sizeof(string), "War time: ~y~%s ~w~", CalculeazaTimp(time));
					TextDrawSetString(tTimer[x], string);
					GangZoneFlashForPlayer(x, Turfs[i], COLOR_RED);
					if(IsPlayerInTurf(x, i))
					{
					    if(IsPlayerInAnyVehicle(x))
					    {
					        if(JustRemoved[x] == 0)
					        {
						        RemovePlayerFromVehicle(x);
						        SendClientMessage(x, COLOR_RED, "You do not get in a car on turf!");
						        JustRemoved[x] = 1;
							}
					    }
					}

					foreach(Player, a)
					{
						if((playerVariables[x][pGroup] == WarInfo[i][wAttacker] || playerVariables[x][pGroup] == WarInfo[i][wFaction]) && groupVariables[playerVariables[x][pGroup]][gInWar] == 1 && (playerVariables[a][pGroup] == WarInfo[i][wAttacker] || playerVariables[a][pGroup] == WarInfo[i][wFaction]))
						{
							SetPlayerMarkerForPlayer(x, a, GetPlayerColor(a));
						}
					}

					if(GetPlayerState(x) == PLAYER_STATE_ONFOOT)
					{
						JustRemoved[x] = 0;
					}

			    }
				else if(playerVariables[x][pGroup] == 0)
				{
					TextDrawHideForPlayer(x, tTimer[x]);
					GangZoneStopFlashForPlayer(x, Turfs[i]);
				}
			}
			if(count == 0)
			{

			    	groupVariables[WarInfo[i][wFaction]][gInWar] = 0;
					groupVariables[WarInfo[i][wAttacker]][gInWar] = 0;
			        groupVariables[att][gDeelay] = 600;
					new id;
					id = CalculateBestScore(i);
					new id2 = CalculateWorstScore(i);
					format(szMessage, sizeof(szMessage), "--------------------[war overview]-----------------");
					SendToGroup(att, COLOR_ATTACK, szMessage);
					SendToGroup(deff, COLOR_ATTACK, szMessage);
					format(szMessage, sizeof(szMessage), "Score: %s %d - %d %s",groupVariables[WarInfo[i][wAttacker]][gGroupName] , groupVariables[WarInfo[i][wAttacker]][gScore], groupVariables[deff][gScore], groupVariables[deff][gGroupName]);
					SendToGroup(att, COLOR_ATTACK, szMessage);
					SendToGroup(deff, COLOR_ATTACK, szMessage);
					format(szMessage, sizeof(szMessage), "Best score: %s (%i). Worst score: %s (%i)", playerVariables[id][pNormalName], playerVariables[id][pWarScore] - playerVariables[id][pWarDeaths], playerVariables[id2][pNormalName], playerVariables[id2][pWarScore] - playerVariables[id2][pWarDeaths]);
					SendToGroup(att, COLOR_ATTACK, szMessage);
					SendToGroup(deff, COLOR_ATTACK, szMessage);
					foreach(Player, z)
					{
						TextDrawHideForPlayer(z, tTimer[z]);
						if(playerVariables[z][pGroup] == att || playerVariables[z][pGroup] == deff)
						{
							/*foreach(Player, a)
							{
								SetPlayerMarkerForPlayer( z, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
							}*/
						    TextDrawHideForPlayer(z, tTimer[z]);
						    format(szMessage, sizeof(szMessage), "Your personal score: %i", playerVariables[z][pWarScore] - playerVariables[z][pWarDeaths]);
						    SendClientMessage(z, COLOR_ATTACK, szMessage);
						    playerVariables[z][pWarScore] = 0;
							playerVariables[z][pWarDeaths] = 0;
							GangZoneShowForPlayerEx(z, Turfs[i], GetTeamZoneColor(TurfInfo[i][zOwned]));
							TextDrawHideForPlayer(z, War0[z]);
							TextDrawHideForPlayer(z, War1[z]);
							TextDrawHideForPlayer(z, War2[z]);
							TextDrawHideForPlayer(z, War3[z]);
	
							JustRemoved[z] = 0;
						}
					}
					format(szMessage, sizeof(szMessage), "-------------------------------------");
					SendToGroup(att, COLOR_ATTACK, szMessage);
					SendToGroup(deff, COLOR_ATTACK, szMessage);
					format(szMessage, sizeof(szMessage), "[WAR] %s failed to win turf %i owned by %s because they left the turf.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
					SendToGroup(att, COLOR_ATTACK, szMessage);
					SendToGroup(deff, COLOR_ATTACK, szMessage);
					GangZoneStopFlashForAll(Turfs[i]);
					WarInfo[i][wTime] = 0;
					WarInfo[i][wAttacker] = 0;
					WarInfo[i][wFaction] = 0;
			}
            if(WarInfo[i][wTime] == 2)
            {
                if(groupVariables[WarInfo[i][wAttacker]][gScore] > groupVariables[WarInfo[i][wFaction]][gScore])
                {
	                TurfInfo[i][zOwned] = WarInfo[i][wAttacker];
		            format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[i][zOwned], i);
					mysql_tquery(handle, result);
					format(szMessage, sizeof(szMessage), "NR AdmBot: Gruparea mafiota %s a cucerit teritoriul %i care era detinut de mafia %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
					SendClientMessageToAll2(COLOR_NEWSRP, szMessage);
     				groupVariables[att][gDeelay] = 300;
				}
	           	else if(groupVariables[WarInfo[i][wAttacker]][gScore] < groupVariables[WarInfo[i][wFaction]][gScore])
	            {
	                TurfInfo[i][zOwned] = WarInfo[i][wFaction];
		            format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[i][zOwned], i);
					mysql_tquery(handle, result);
					groupVariables[att][gDeelay] = 600;
					format(szMessage, sizeof(szMessage), "[WAR] %s failed to win turf %i owned by %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
					SendToGroup(att, COLOR_ATTACK, szMessage);
					SendToGroup(deff, COLOR_ATTACK, szMessage);
				}
				else if(groupVariables[WarInfo[i][wAttacker]][gScore] == groupVariables[WarInfo[i][wFaction]][gScore])
	            {
	                TurfInfo[i][zOwned] = WarInfo[i][wFaction];
		            format(result, sizeof(result), "UPDATE turfs SET Owned = '%d' WHERE ID = %d", TurfInfo[i][zOwned], i);
					mysql_tquery(handle, result);
					groupVariables[att][gDeelay] = 600;
					format(szMessage, sizeof(szMessage), "[WAR] %s failed to win turf %i owned by %s.", groupVariables[att][gGroupName], i, groupVariables[deff][gGroupName]);
					SendToGroup(att, COLOR_ATTACK, szMessage);
					SendToGroup(deff, COLOR_ATTACK, szMessage);
				}
				new id;
				id = CalculateBestScore(i);
				new id2 = CalculateWorstScore(i);
				groupVariables[WarInfo[i][wFaction]][gInWar] = 0;
				groupVariables[WarInfo[i][wAttacker]][gInWar] = 0;
				format(szMessage, sizeof(szMessage), "--------------------[war overview]-----------------");
				SendToGroup(att, COLOR_ATTACK, szMessage);
				SendToGroup(deff, COLOR_ATTACK, szMessage);
				format(szMessage, sizeof(szMessage), "Score: %s %d - %d %s",groupVariables[WarInfo[i][wAttacker]][gGroupName] , groupVariables[WarInfo[i][wAttacker]][gScore], groupVariables[deff][gScore], groupVariables[deff][gGroupName]);
				SendToGroup(att, COLOR_ATTACK, szMessage);
				SendToGroup(deff, COLOR_ATTACK, szMessage);
				format(szMessage, sizeof(szMessage), "Best score: %s (%i). Worst score: %s (%i)", playerVariables[id][pNormalName], playerVariables[id][pWarScore] - playerVariables[id][pWarDeaths], playerVariables[id2][pNormalName], playerVariables[id2][pWarScore] - playerVariables[id2][pWarDeaths]);
				SendToGroup(att, COLOR_ATTACK, szMessage);
				SendToGroup(deff, COLOR_ATTACK, szMessage);
				foreach(Player, z)
				{
					TextDrawHideForPlayer(z, tTimer[z]);
					if(playerVariables[z][pGroup] == att || playerVariables[z][pGroup] == deff)
					{
						/*foreach(Player, a)
						{
							SetPlayerMarkerForPlayer( z, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
						}*/
					    TextDrawHideForPlayer(z, tTimer[z]);
					    format(szMessage, sizeof(szMessage), "Your personal score: %i", playerVariables[z][pWarScore] - playerVariables[z][pWarDeaths]);
					    SendClientMessage(z, COLOR_ATTACK, szMessage);
					    playerVariables[z][pWarScore] = 0;
						playerVariables[z][pWarDeaths] = 0;
						GangZoneShowForPlayerEx(z, Turfs[i], GetTeamZoneColor(TurfInfo[i][zOwned]));
						JustRemoved[z] = 0;
					}
				}
				format(szMessage, sizeof(szMessage), "-------------------------------------");
				SendToGroup(att, COLOR_ATTACK, szMessage);
				SendToGroup(deff, COLOR_ATTACK, szMessage);
				GangZoneStopFlashForAll(Turfs[i]);
				WarInfo[i][wTime] = 0;
				WarInfo[i][wAttacker] = 0;
				WarInfo[i][wFaction] = 0;
			}
		}
	}
    foreach(Player, i)
	{
	    if(IsPlayerConnected(i))
	    {
	        if(PaintballRound == 1 && PlayerPaintballing[i] != 0)
	    	{
	    	    new string[32];
				format(string,sizeof(string),"Paintball time: ~b~%s", CalculeazaTimp(painttime));
				TextDrawSetString(Paintball[3][i], string);
		        TextDrawShowForPlayer(i, Paintball[3][i]);
			}
	        if(PlayerStoned[i] >= 2)
			{
				new Float:angle;
				GetPlayerFacingAngle(i, angle);
				if(IsPlayerInAnyVehicle(i))
				{
					if(GetPlayerState(i) == 2)
					{
						SetVehicleZAngle(GetPlayerVehicleID(i), angle + 15);
						SetPlayerDrunkLevel (i, 5000);
					}
				}
				else
				{
					SetPlayerDrunkLevel (i, 5000);
				}
			}
			if(MedicCallTime[i] > 0)
			{
       			if(MedicAccepted[i] < 999)
			    {
				    if(IsPlayerConnected(MedicAccepted[i]))
				    {
				        new Float:X,Float:Y,Float:Z;
						GetPlayerPos(MedicAccepted[i], X, Y, Z);
						SetPlayerCheckpoint(i, X, Y, Z, 5);
				    }
				}
			}
	    }
	}
	return 1;
}
Reply


Messages In This Thread
CrashDetect Plugin Error - by BoBiTzaa - 07.03.2015, 13:21
Re: CrashDetect Plugin Error - by BoBiTzaa - 07.03.2015, 13:24
Re: CrashDetect Plugin Error - by ReD_HunTeR - 07.03.2015, 13:28
Respuesta: CrashDetect Plugin Error - by JuanStone - 07.03.2015, 13:29
Re: CrashDetect Plugin Error - by BoBiTzaa - 07.03.2015, 13:30
Re: CrashDetect Plugin Error - by BoBiTzaa - 07.03.2015, 14:28
Re: CrashDetect Plugin Error - by BoBiTzaa - 08.03.2015, 12:25
Re: CrashDetect Plugin Error - by Misiur - 08.03.2015, 13:52

Forum Jump:


Users browsing this thread: 2 Guest(s)