16.02.2012, 16:30
OK, thank you.. And what's wrong with this code?
When I am near wanted player, it says that there isnt wanted players near me.
pawn Код:
if (PRESSED(KEY_ACTION))
{
if (iClass[playerid] != ClassPolice || iCopStop[playerid] + 3000 > GetTickCount()) return true;
new Float: fX, Float: fY, Float: fZ;
GetPlayerPos(playerid, fX, fY, fZ);
foreach (new i: Player)
{
if (IsPlayerInRangeOfPoint(i, 5, fX, fY, fZ))
{
if (GetPlayerWantedLevel(i) > 0)
{
GameTextForPlayer(i, "~b~POLICIJA:~n~~b~PRASOME SUSTOTI, ARBA BUS IMTASI KITU VEIKSMU!", 3000, 4);
iCopStop[playerid] = GetTickCount();
}
else ShowInfoBox(playerid, "~w~Sis zaidлjas ~g~nera ~w~ieskomas!");
}
else ShowInfoBox(playerid, "~w~Salia jusu ~r~nera ~w~ieskomu zaideju!");
}
}

