26.08.2014, 21:32
Quote:
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]--; }