[Ajuda] Radar Pegando Varias Vezes
#4

Quote:
Originally Posted by merloch
Посмотреть сообщение
O poderosa bola de cristal mostre-me o code dela para que eu possar ajudar!
Код:
CheckPlayerSpeeding(playerid)
{
new Name[24], Msg[128];
	if (APlayerData[playerid][PlayerCaughtSpeeding] == 0)
	{
		for (new CamID; CamID < MAX_CAMERAS; CamID++)
		{
		    if (ACameras[CamID][CamSpeed] != 0)
		    {
				if (GetPlayerVehicleSeat(playerid) == 0)
				{
					if (APlayerData[playerid][PlayerSpeed] > ACameras[CamID][CamSpeed])
					{
						if (IsPlayerInRangeOfPoint(playerid, 40.0, ACameras[CamID][CamX], ACameras[CamID][CamY], ACameras[CamID][CamZ]))
						{
						    APlayerData[playerid][PlayerCaughtSpeeding] = 20;
						    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1);     
                            PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0); 
                            GameTextForPlayer(playerid, "~r~Flagrado pelo radar", 6000, 1);
						    SendClientMessage(playerid, 0xFFFFFFFF, TXT_PlayerCaughtSpeeding);
							GetPlayerName(playerid, Name, sizeof(Name));
							format(Msg, 128, "{0000FF}[Departamento de Polнcia] O suspeito {FFFFFF}%s {0000FF}foi pкgo em alta velocidade!", Name);
							Police_SendMessage(Msg);
                            Police_SendMessage("{0000FF}[Objetivo]: {FFFFFF}Perseguir e multar{0000FF}.");                              
						}
					}
				}
		    }
		}
	}
	else // If the player has been caught before, reduce the value until it's 0 again, then he can be caught again
	APlayerData[playerid][PlayerCaughtSpeeding]--;
}
Se nгo For isto fale-me o que seria! '_-
Reply


Messages In This Thread
Radar Pegando Varias Vezes - by luisvitor2398 - 26.08.2014, 11:10
Re: [AJUDA] Radar Pegando Varias Vezes - by Rodney Francalim - 26.08.2014, 12:14
Re: Radar Pegando Varias Vezes - by merloch - 26.08.2014, 19:42
Re: Radar Pegando Varias Vezes - by luisvitor2398 - 26.08.2014, 21:32

Forum Jump:


Users browsing this thread: 3 Guest(s)