28.12.2017, 16:11
Galera estou com problemas no meu radar ele cria tudo certinho mais quando passo por ele #nadaacontece
uso o gm base do ppc
aqui esta a public .
// This function checks if the player is speeding near a speedcamera
CheckPlayerSpeeding(playerid)
{
// Setup local variables
new Name[24], Msg[128];
new Msg2[128];
if (APlayerData[playerid][PlayerCaughtSpeeding] == 0)
{
for (new CamID; CamID < MAX_CAMERAS; CamID++)
{
if (ACameras[CamID][CamSpeed] != 0)
{
/*if (IsPlayerInRangeOfPoint(playerid, 100.0, ACameras[CamID][CamX], ACameras[CamID][CamY], ACameras[CamID][CamZ]))
{
TextDrawShowForPlayer(playerid, RadarRadar[playerid]);
SetTimer("DestruirTextRadar", 3000, false);
}*/
if (GetPlayerVehicleSeat(playerid) == 0)
{
if (APlayerData[playerid][PlayerSpeed] > ACameras[CamID][CamSpeed])
{
if (IsPlayerInRangeOfPoint(playerid, 30.0, ACameras[CamID][CamX], ACameras[CamID][CamY], ACameras[CamID][CamZ]))
{
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
APlayerData[playerid][PlayerCaughtSpeeding] = 20;
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1);
SendClientMessage(playerid, 0xFFFFFFFF, TXT_PlayerCaughtSpeeding);
GetPlayerName(playerid, Name, sizeof(Name));
format(Msg, 128, "{FFFF00}[INFO] {009D4F}Player %s estб dirigindo em alta velocidade, pare-o e multe-o", Name);
Police_SendMessage(Msg);
format(Msg2, sizeof(Msg2), "{009D4F}Visto pela ъltima vez nas redondezas de: {AFAFAF}%s", zone);
Police_SendMessage(Msg2);
}
}
}
}
}
}
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]--;
}
LINK COMPLETO DO VELOCIMENTRO : https://pastebin.com/d4puwLWd
uso o gm base do ppc
aqui esta a public .
// This function checks if the player is speeding near a speedcamera
CheckPlayerSpeeding(playerid)
{
// Setup local variables
new Name[24], Msg[128];
new Msg2[128];
if (APlayerData[playerid][PlayerCaughtSpeeding] == 0)
{
for (new CamID; CamID < MAX_CAMERAS; CamID++)
{
if (ACameras[CamID][CamSpeed] != 0)
{
/*if (IsPlayerInRangeOfPoint(playerid, 100.0, ACameras[CamID][CamX], ACameras[CamID][CamY], ACameras[CamID][CamZ]))
{
TextDrawShowForPlayer(playerid, RadarRadar[playerid]);
SetTimer("DestruirTextRadar", 3000, false);
}*/
if (GetPlayerVehicleSeat(playerid) == 0)
{
if (APlayerData[playerid][PlayerSpeed] > ACameras[CamID][CamSpeed])
{
if (IsPlayerInRangeOfPoint(playerid, 30.0, ACameras[CamID][CamX], ACameras[CamID][CamY], ACameras[CamID][CamZ]))
{
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
APlayerData[playerid][PlayerCaughtSpeeding] = 20;
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1);
SendClientMessage(playerid, 0xFFFFFFFF, TXT_PlayerCaughtSpeeding);
GetPlayerName(playerid, Name, sizeof(Name));
format(Msg, 128, "{FFFF00}[INFO] {009D4F}Player %s estб dirigindo em alta velocidade, pare-o e multe-o", Name);
Police_SendMessage(Msg);
format(Msg2, sizeof(Msg2), "{009D4F}Visto pela ъltima vez nas redondezas de: {AFAFAF}%s", zone);
Police_SendMessage(Msg2);
}
}
}
}
}
}
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]--;
}
LINK COMPLETO DO VELOCIMENTRO : https://pastebin.com/d4puwLWd