[POMOC] OnPlayerDeath.

20. Jul 2012. Zaključano
347
pregleda
3
postova
Edinblack1994
3
Wheel Man
20. Jul 2012.
Skripta koju koristim: Moj Mod
Detaljan opis problema: Znaci nepase mi OnPlayerDeath - kada se ubjem ne spawnam se ispravno. Vidite dole u videu. Znaci ne spawnam se na normalnom mjesto, nego uvjek zastane ovako ili pise samo dole ono ljevo, desno i spawn.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://www.youtube.com/watch?v=qXcNTbPULb4&feature=youtu.be

Evo vam OnPlayerDeath.
public OnPlayerDeath(playerid, killerid, reason)
{
    PInfo += 1;
    PInfo += 1;
    DisablePlayerRaceCheckpoint(playerid);
    DisablePlayerCheckpoint(playerid);
    DakarRacer = 0;
    Forester = 0;
    Dostava = 0;
    if(ForestRed == 1)
    {
    new string;
    ForestC -= 1;
    ForestRed = 0;
    format(string, 256, "~r~CRVENI: ~w~%d /// ~b~PLAVI: ~w~%d", ForestC, ForestP);
    TextDrawSetString(Event, string);
    TextDrawHideForPlayer(playerid, Event);
    }
    if(ForestBlue == 1)
    {
    new string;
    ForestP -= 1;
    ForestBlue = 0;
    format(string, 256, "~r~CRVENI: ~w~%d /// ~b~PLAVI: ~w~%d", ForestC, ForestP);
    TextDrawSetString(Event, string);
    TextDrawHideForPlayer(playerid, Event);
    }
    if(Meta == 1)
    {
    Meta = 0;
    Meta = 1;
    SetPlayerColor(playerid, TEAM_HIT_COLOR);
    SetPlayerColor(killerid, COLOR_LIGHTBLUE);
    new string;
    new p1, p2;
    GetPlayerName(playerid, p1, sizeof(p1));
    GetPlayerName(killerid, p2, sizeof(p2));
    format(string, sizeof(string), "SERVER: Meta (%s) je ubijena od strane (%s) - sada on postaje meta.", p1, p2);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    }
    if(hit == 1 && HitInfo == 1 && PInfo == 6)
    {
    if(hitmanid == playerid)
    {
    new string, name;
    GetPlayerName(playerid, name, sizeof(name));
    new level = PInfo;
    new pdclan = 500*IsACop(playerid);
    HitInfo = level*100+pdclan;
    format(string, sizeof(string), "HITMAN AGENCY: Uspjesno ste rjesili svoju metu pod imenom %s te ste dobili $%d.", name, HitInfo);
    SCM(killerid, COLOR_GOLD, string);
    GivePlayerMoney(killerid, HitInfo);
    HitInfo = 0;
    GivePlayerMoney(playerid, 100);
    SetPlayerColor(playerid,TEAM_HIT_COLOR);
    SetTimerEx("HitTime", 180000, false, "%d", playerid);
    }
    }
    if(Speced == 1)
    {
    foreach(Player,i)
    {
    if(spectatorid == playerid)
    {
    PlayerSpectatePlayer(i, playerid);
    }
    }
    return 1;
    }
    //WL
    if(IsCopClose(killerid))
    {
    if(PInfo != 1 && PInfo == 1)
    {
    if(PInfo < 6)
    {
    new name, string;
    GetPlayerName(killerid, name, sizeof(name));
    PInfo = 6;
    SetPlayerWantedLevel(killerid, 6);
    Clearable = 0;
    SCM(killerid, COLOR_LIGHTRED, "INFO: Pocinili ste zlocin 'ubojstvo sluzbene osobe' - dobili ste wanted level 6.");
    format(string, sizeof(string), "WANTED INFO: Igrac %s je pocinio zlocin 'ubojstvo sluzbene osobe' - dobio je wanted level 6.", name);
    SendRadioMessage(1, COLOR_SVJETLOPLAVA, string);
    }
    }
    else if(PInfo != 1 && PInfo != 1)
    {
    if(PInfo < 5)
    {
    new name, string;
    GetPlayerName(killerid, name, sizeof(name));
    PInfo = 5;
    SetPlayerWantedLevel(killerid, 5);
    Clearable = 0;
    SCM(killerid, COLOR_LIGHTRED, "INFO: Pocinili ste zlocin 'ubojstvo prvog stupnja' - dobili ste wanted level 5.");
    format(string, sizeof(string), "WANTED INFO: Igrac %s je pocinio zlocin 'ubojstvo prvog stupnja' - dobio je wanted level 5.", name);
    SendRadioMessage(1, COLOR_SVJETLOPLAVA, string);
    }
    }
    }
    GivePlayerMoney(playerid, 100);
    if(PlayerTied > 0) { KillTimer(tied); TogglePlayerControllable(playerid, 1); PlayerTied = 0; }
    DisablePlayerCheckpoint(playerid);
    Delator = 0;
    return 1;
}
Edinblack1994
3
Wheel Man
20. Jul 2012.
Zna li iko resenje. Ovo mi je jako vazno.
Deleted User
Obrisan korisnik
20. Jul 2012.
Kad vec jednom naucis da ne bumpas temu posle 1h onda cu ti pomoci 🙂

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha