Ubojstvo 'Poruka'

Započeo Plen Ki Mun
4. Apr. 2018. Zaključano
690
pregleda
6
postova
Mate
5
Underboss
4. Apr. 2018.
Problem(error/warning): Pa jednostavno kada upisem komandu da igrac raznese sam sebe, ali kada nekoga isto ubije blizu poruke se ne ispisuju niti nema ikone da sam uradio suicide ili ubio koga. @Ino42O
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
Ivan_Ino
5
Kingpin
4. Apr. 2018.
Ovdje bi trebao provjeravati x y z od igraca koji je pokrenuo komandu a ne za svakog igraca svoju poziciju

new Float:x, Float:y, Float:z;
                GetPlayerPos(i, x, y, z);

                if(IsPlayerInRangeOfPoint(i, 10.0, x, y, z))
Mate
5
Underboss
4. Apr. 2018.
Pa tako i imam postavljeno..
Ivan_Ino
5
Kingpin
4. Apr. 2018.
Ja ti ukazujem na linije koje su krive, nisam blizu racunala pa mi nezgodno sa mobitela pisati kod
Mate
5
Underboss
5. Apr. 2018.
BUMP*
ophion
5
OG Legend
5. Apr. 2018.
nije proslo 24h

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha