Dio skripte:
CMD:raznesi(playerid)
{
if(PlayerClass == 9)
{
if(gBomb)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, 4))
{
new Float:pos;
GetPlayerPos(playerid, pos, pos, pos);
CreateExplosion(pos, pos, pos, 7, 10.00);
gBomb = false;
SetPlayerHealth(playerid, 0.0);
GameTextForPlayer(playerid, "~g~RAZNESEN", 3000, 3);
RemovePlayerAttachedObject( playerid, 4);
foreach(new i : Player)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
if(IsPlayerInRangeOfPoint(i, 10.0, x, y, z))
{
if(GetPlayerTeam(i) != GetPlayerTeam(i))
{
SetPlayerHealth(i, 0.0);
GameTextForPlayer(i, "~r~UBIJEN ", 3000, 3);
new string;
format(string, sizeof(string), "Ubijen si od %s", GetName(playerid));
SendClientMessage(i, -1, string);
format(string, sizeof(string), "Ubijen si od strane %s sa bombom.", GetName(i));
SendClientMessage(playerid, -1, string);
CallLocalFunction("OnPlayerDeath", "iii", i, playerid, 53);
}
}
}
}
}
}
else SCM(playerid, COLOR_ORANGE_RED, "Nisi u mogucnosti.");
return 1;
}
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike
