if(PRESSED(KEY_FIRE))
{
if(RcBombActivated == 1)
{
new str;
if(!IsPlayerInAnyVehicle(playerid))
return SCM(playerid,0xFF0000FF,"Nisu u vozilu.");
GetPlayerPos(playerid, PlayerPos, PlayerPos, PlayerPos);
SetPlayerPos(playerid, RcLastPos, RcLastPos, RcLastPos);
SetPlayerFacingAngle(playerid, RcLastPos);
KillTimer(RcBombTimer);
CreateExplosion(PlayerPos, PlayerPos, PlayerPos , 12, 0.0);
DestroyVehicle(RcVehicleBomb);
RcBombActivated = 0;
foreach(new i : Player)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 10.0, PlayerPos, PlayerPos, PlayerPos))
{
if(GetPlayerTeam(i) != GetPlayerTeam(playerid))
{
SetPlayerHealth(i, 0.0);
SCM(i, -1,"Ubijen si")
SCM(i, -1,"Ubio te predator likuso");
CallLocalFunction("OnPlayerDeath", "iii", i, playerid, 51);
DajNovac(playerid, 5000);
SetPlayerScore(playerid, PInfo += 1);
}
}
}
}
}
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): Sve ok
Slika/video ingame problema(obavezno ako je ingame problem):
@Ino42O
