[Pomoc]Boce,cigarete

Započeo Ante_Street, Jun 13, 2011, 18:32:44 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:LARP(Ravens)
Detaljan opis problema:zasto svaki put kad igrac umre ostaje cigareta il boca i dali je to moguce ikako maknuti
Dio skripte:Spawn
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Jun 13, 2011, 18:35:18 POSLE PODNE od _eXtreme_
Trazim "Profesionalnog Skriptera" da mi napravi jednu stvar,cijena nebitna nek mi se javi na pm....trazim lika koji zna raditi ne nekog pocetnika


Trazim "Profesionalnog Skriptera" da mi napravi jednu stvar,cijena nebitna nek mi se javi na pm....trazim lika koji zna raditi ne nekog pocetnika


Citat: Ante_Street poslato Jun 13, 2011, 18:35:35 POSLE PODNE
Citat: ...CoNe ' ılıllıl... poslato Jun 13, 2011, 18:34:03 POSLE PODNE
To je u SAMP-u Tako  :D
A nije moguce maknuti?
Da,Nemoguce je to maknuti  8)

EDIT:

@aleluja

Nemoguce je Srv kao Edimax i dr.. sigurno bi to maknuli nebi stavljali mislim da je nemoguce stwrn
Poslednja Izmena: Jun 13, 2011, 18:37:03 POSLE PODNE od ...CoNe ' ılıllıl...



public OnPlayerDeath(playerid, killerid, reason)
{
    new string[128];
new name[MAX_PLAYER_NAME];
new name2[MAX_PLAYER_NAME];
new deathreason[20];
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(killerid, name2, sizeof(name2));
if(killerid != INVALID_PLAYER_ID)
{
if(GetPlayerWeapon(killerid) != reason)
{
    if(AntiFakeKill == 1)
    {
        if(reason !=  51 || reason != 50 || reason != 18 || reason == 36 || reason == 35 || reason == 40 || reason == 16)
        {
        if(FakeKillWarns[playerid] == 4)
{
format(string, sizeof(string), "%s (%d), je kikan od LS Paradise AC tbog moguceg laznog umiranja.", name, playerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(playerid,COLOR_LIGHTBLUE, "Kikan si od LS Paradise AC zbog moguceg Laznog umiranja.");
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat je kikao %s zbog: Laznog umiranja.",d,m,y,h,mi,s,name);
KickLog(string);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Kikan od LS Paradise AC - Lazno umiranje.",d,m,y,h,mi,s,name);
AddPunishment(playerid, string);
Kick(playerid);
}
format(string, sizeof(string), "[LS Paradise AC]: %s (%d) Moguce da koristi Lazno umiranje; Provjeri ga odmah!!", name, playerid);
SendAdminMessage(COLOR_YELLOW, string);
PlayerSuspicious[playerid] = 1;
PlayerFakeDeathHacking[playerid] = 1;
PlayerGotSpottedRecently[playerid] = 1;
FakeKillWarns[playerid] ++;
SetTimerEx("ResetAcWarn", 300000, 0, "i", playerid);
}
}
}
}
if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
{
    if(AntiDriveBy == 1)
    {
        new model = GetVehicleModel(GetPlayerVehicleID(killerid));
        if(model != 520 || model != 425 || model != 432)
        {
        PlayerInfo[killerid][pWarns] ++;
    if(PlayerInfo[playerid][pWarns] == 3)
{
        format(string, sizeof(string), "%s (%d), je kikan od LS Paradise-AC zbog pretjeranog drive by ubojstva.", name2, killerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(killerid,COLOR_LIGHTBLUE, "Kikan si od LS Paradise-AC zbog pretjeranog drive by ubojstva");
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat je kikao %s zbog: pretjeranog drive by ubojstva",d,m,y,h,mi,s,name2);
KickLog(string);
Kick(killerid);
}
else
{
    format(string, sizeof(string), "%s (%d), je dobio warn od LS Paradise zbog drive by ubojstva.", name2, killerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(killerid,COLOR_LIGHTBLUE, "Ti si dobio warn od LS Paradise zbog pretjeranog drive by ubojstva");
format(string, sizeof(string), "LS Paradise: %s je ubio nekog putem drive by ubojstva; igrac je dobio warn.", name2);
SendAdminMessage(COLOR_YELLOW, string);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Dobio si warn od  LS Paradise - Razlog: Drive by ubojstvo.",d,m,y,h,mi,s);
AddPunishment(killerid, string);
}
}
}
}
if(killerid != INVALID_PLAYER_ID)
{
    if(reason == 0) { deathreason = "Melee"; }
    else if(reason == 36 || reason == 35 || reason == 40 || reason == 16) { deathreason = "Explosion"; }
    else if(reason == 18 || reason == 37) { deathreason = "Fire"; }
    else if(reason == 51) { deathreason = "Explosion"; }
    else if(reason == 50) { deathreason = "Heli-Kill"; }
    //else { GetWeaponName(reason, deathreason, sizeof(deathreason)); }
    //format(string, sizeof(string),"[INFO]: %s (%d) je ubijen od %s (%d) - %s", name,playerid,name2,killerid,deathreason); //sranje
    //SendAdminMessage(COLOR_GREEN, string);
}
else
{
    new text[30];
    if(reason == 51) { text = "Explosion"; }
    else if(reason == 53) { text = "Drowned"; }
    else if(reason == 54) { text = "Collision"; }
    else { text = "Death"; }
    //format(string, sizeof(string),"[INFO]: %s (%d) je ubijen od Server-a. (%s)",name,playerid, text); //sranje
    //SendAdminMessage(COLOR_GREEN, string);
}
new playercash;
new victimteam = gTeam[playerid];
new Float:px,Float:py,Float:pz;
new killerteam = gTeam[killerid];
ScriptMoneyUpdated[playerid] = 1;
TextDrawHideForPlayer(playerid, Textdraw39[playerid]);
TextDrawHideForPlayer(playerid, Textdraw40[playerid]);
gPlayerSpawned[playerid] = 0;
if(PlayerInfo[playerid][pAdminDuty] >= 1) { PlayerInfo[playerid][pAdminDuty] = 0; }
GetPlayerPos(playerid, px, py, pz);

if (PlayerInfo[killerid][pAchievement9] == 0 && PlayerInfo[killerid][pKills] == 1)
{
ShowPlayerDialog(killerid,509,DIALOG_STYLE_MSGBOX,"Achievements:\n Newbie Killer (9)","Congratulations, You have Achieved The 'Newbie Killer' Badge! \n You Won 100$","Okay","Cancel");
SafeGivePlayerMoney(killerid,100);
PlayerInfo[killerid][pAchievement9] = 1;
}
if (PlayerInfo[killerid][pAchievement10] == 0 && PlayerInfo[killerid][pKills] == 75)
{
ShowPlayerDialog(killerid,510,DIALOG_STYLE_MSGBOX,"Achievements:\n Serial Killer (10)","Congratulations, You have Achieved The 'Serial Killer' Badge! \n You Won 250$","Okay","Cancel");
SafeGivePlayerMoney(killerid,250);
PlayerInfo[killerid][pAchievement10] = 1;
}
if (PlayerInfo[killerid][pAchievement11] == 0 && PlayerInfo[killerid][pKills] == 150)
{
ShowPlayerDialog(killerid,511,DIALOG_STYLE_MSGBOX,"Achievements:\n Assassin (11)","Congratulations, You have Achieved The 'Assassin' Badge! \n You Won 500$","Okay","Cancel");
SafeGivePlayerMoney(killerid,500);
PlayerInfo[killerid][pAchievement11] = 1;
}
if(gPlayerUsingLoopingAnim[playerid])
{
        gPlayerUsingLoopingAnim[playerid] = 0;
        TextDrawHideForPlayer(playerid,txtAnimHelper);
}
if(WantedPoints[playerid] > 0)
{
    new dstring[128];
new wanted = WantedPoints[playerid];
new diecash = 0;
    while(WantedPoints[playerid] > 0)
    {
        diecash += 500;
        WantedPoints[playerid] --;
    }
    format(dstring, sizeof(dstring), "Izgubili ste $%d zbog umiranja sa %d wanted poena.", diecash, wanted);
    SendClientMessage(playerid, COLOR_YELLOW, dstring);
    SafeGivePlayerMoney(playerid, - diecash);
    PlayerInfo[playerid][pWantedDeaths] += 1;
}
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
if(PlayerInfo[playerid][pDonateRank] > 0) { SetPlayerHealth(playerid, 100.0); }
else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); }
MedicBill[playerid] = 1;
gPlayerSpawned[playerid] = 1;
SafeTime[playerid] = 60;
Checked[playerid] = 1;
PlayerGotSpottedRecently[playerid] = 1;
SetTimerEx("ResetAcWarn",20000,false, "i", playerid);
if(killerid != 255)
{
if(GetPlayerState(killerid) == 2)
{
    if(ProxDetectorS(20, killerid, playerid))
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
if(PlayerInfo[killerid][pMember] == 1||PlayerInfo[killerid][pLeader] == 1||PlayerInfo[killerid][pMember] == 2||PlayerInfo[killerid][pLeader] ==2)
    {
        SendClientMessage(killerid, COLOR_YELLOW, "Ovo je drive by ubojstvo. Ne koristite ga.");
return 1;
}
SetPlayerCriminal(killerid,255,"Manslaughter");
return 1;
}
}
}
}
if (reason == 22)
{
if (PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000)
{
    PlayerInfo[killerid][pPistSkill] += 2;
    SetPlayerSkills(killerid);
}
}
if (reason == 23)
{
if (PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000)
{
    PlayerInfo[killerid][pSilenSkill] += 2;
    SetPlayerSkills(killerid);
  }
if (PlayerInfo[killerid][pAchievement0] == 0)
{
    ShowPlayerDialog(killerid,500,DIALOG_STYLE_MSGBOX,"Achievements:\n Silent Kill (0)","Congratulations, You have Achieved The 'Silent Kill' Badge! \n You Won 200$ And 50+ of Skill!","Okay","Cancel");
PlayerInfo[killerid][pSilenSkill] += 50;
SafeGivePlayerMoney(killerid,200);
PlayerInfo[playerid][pAchievement0] = 0;
}
}
if (reason == 24)
{
if (PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000)
{
    PlayerInfo[killerid][pDesertSkill] += 2;
    SetPlayerSkills(killerid);
}
}

if (reason == 25)
{
if (PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000)
{
    PlayerInfo[killerid][pShotgSkill] += 2;
    SetPlayerSkills(killerid);
}
}
if (reason == 26)
{
if (PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 800)
{
    PlayerInfo[killerid][pSawnSkill] += 2;
    SetPlayerSkills(killerid);
}
}
if (reason == 27)
{
if (PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000)
{
    PlayerInfo[killerid][pCombSkill] += 2;
    SetPlayerSkills(killerid);
}
}

if (reason == 28 || reason == 32)
{
if (PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 800)
{
    PlayerInfo[killerid][pUziSkill] += 2;
    SetPlayerSkills(killerid);
}
}

if (reason == 29)
{
if (PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000)
{
    PlayerInfo[killerid][pSmgSkill] += 2;
    SetPlayerSkills(killerid);
}
}

if (reason == 30)
{
if (PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000)
{
    PlayerInfo[killerid][pAkSkill] += 2;
    SetPlayerSkills(killerid);
}
}

if (reason == 31)
{
if (PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000)
{
    PlayerInfo[killerid][pM4Skill] += 2;
    SetPlayerSkills(killerid);
}
}


if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller,  COLOR_GRAD2, "** Linija smrti....");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
ClearCrime(playerid);
if(GettingCK[playerid] < 999)
{
    if(IsPlayerConnected(killerid))
    {
        if(OnCK[killerid] < 999)
        {
            new killer[MAX_PLAYER_NAME];
            new dier[MAX_PLAYER_NAME];
            GetPlayerName(playerid, dier, sizeof(dier));
GetPlayerName(killerid, killer, sizeof(killer));
            format(string, sizeof(string), "* %s je izvrsio ubojstvo na tebi, nisi u mogucnosti igrati sa ovim likom.",killer);
            SendClientMessage(playerid, COLOR_LIGHTRED, string);
            format(string, sizeof(string), "** %s je ubijen od %s **",killer,dier);
            CKLog(string);
            BroadCast(COLOR_LIGHTRED, string);
            PlayerInfo[playerid][pCK] = 1;
            if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
            else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
            if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
            else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
            KickPlayer[playerid] = 1;
        }
    }
}
if(PlayerInfo[playerid][pHeadValue] > 0)
{
    if(IsPlayerConnected(killerid))
    {
    if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8)
    {
        if(GoChase[killerid] == playerid)
        {
            //ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
SafeGivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
format(string,128,"<< Hitman %s je ispuno ugovor nad %s i odnesao $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
}
}
if(victimteam >= 4)
{
    if(IsPlayerConnected(killerid))
    {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
new slice = 100; //$100
playercash = GetPlayerMoney(playerid);
if(gTeam[killerid] != 2) { WantedPoints[killerid] += 2; } //+ 2 wanted points
if(SafeTime[playerid] <= 0)
{
if(gTeam[killerid] != gTeam[playerid])
{
if(GetPlayerState(killerid) == 1)
{
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2;
}
else
{
PlayerInfo[killerid][pKills]++;
}
PlayerInfo[playerid][pKills]--;
}
}
/*if (strlen(deathreason) > 0)// patch
{
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || gTeam[killerid] == gTeam[playerid])//med kill criminal
{
format(string, sizeof(string), ".: %s murdered %s. (%s) :.", killer, name, deathreason);
}
else
{
format(string, sizeof(string), ".: %s murdered %s. (%s) for $%d :.", killer, name, deathreason, slice);
}

}
else
{
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill || gTeam[killerid] == gTeam[playerid]))
{
format(string, sizeof(string), ".: %s murdered %s :.", killer, name);
}
else
{
format(string, sizeof(string), ".: %s murdered %s for $%d :.", killer, name, slice);
}
}*/
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
{
slice = 0;
}
if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
{
slice = 0;
}
if (playercash > 0)
{
SafeGivePlayerMoney(playerid, -slice);
}
else
{
slice = slice+500;
}
//SafeGivePlayerMoney(killerid, slice);
//GameTextForPlayer(playerid, dmessage, 5000, 2);
PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
if (((gTeam[killerid]) == 3) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) == 3) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
}
}
else if (victimteam == 2)
{
    if(IsPlayerConnected(killerid))
    {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Cop kill
PlayerInfo[playerid][pKills]--;
if (gTeam[killerid] == 2)//cops kill cop
{
//format(string,128,".: Officer %s murdered Officer %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
}
else
{
//format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason);
    }
if (gTeam[killerid] >= 3)
{
    WantedPoints[killerid] += 2; //+ 2 wanted points
if(reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
}
if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
{
if(GetPlayerState(killerid) == 1)
{
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
}
else
{
PlayerInfo[killerid][pKills]++;
}
WantedPoints[killerid]+=2;
}
//BroadCast(COLOR_RED, string);
}
}
else if (victimteam == 3)
{
    if(IsPlayerConnected(killerid))
    {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Civ kill
if ((gTeam[killerid]) == 2)//cops kill civ
{
    if(WantedLevel[playerid] < 1)
    {
//format(string,128,".: Officer %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
}
else
{
//format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
WantedPoints[killerid] += 2;
    }
if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
    //BroadCast(COLOR_RED, string);
}
}
else if (victimteam == 1)
{
    if(IsPlayerConnected(killerid))
    {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Civ kill
if ((gTeam[killerid]) == 2)//cops kill civ
{
//format(string,128,".: Officer %s murdered Paramedic %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
else if ((gTeam[killerid]) == 1)//med kill civ
{
//format(string,128,".: Paramedic %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
else
{
//format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
    }
if (((gTeam[killerid]) == 4) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) == 3) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
    //BroadCast(COLOR_RED, string);
}
}
if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
{
    SetPlayerFree(playerid,killerid, "Ubijen");
}
if (BusrouteEast[playerid][0] != 0 || BusrouteWest[playerid][0] != 0)
{
if (BusrouteEast[playerid][0] != 0) BusrouteEnd(playerid, BusrouteEast[playerid][1]);
else if (BusrouteWest[playerid][0] != 0) BusrouteEnd(playerid, BusrouteWest[playerid][1]);
else BusrouteEnd(playerid, 0);
}
if(FarmerVar[playerid] != 0)
{
    FarmerVar[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
}
if(DrugFarmerVar[playerid] != 0)
{
DrugFarmerVar[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
if(SmugglerWork[playerid] != 0)
{
    SmugglerWork[playerid] = 0;
    DisablePlayerCheckpoint(playerid);
}
killerid = INVALID_PLAYER_ID;
SetRealMoney(playerid, ScriptMoney[playerid]);
SetPlayerColor(playerid,0xBBBBBB00);
    SafeResetPlayerWeapons(playerid);
return 1;
}
Trazim "Profesionalnog Skriptera" da mi napravi jednu stvar,cijena nebitna nek mi se javi na pm....trazim lika koji zna raditi ne nekog pocetnika

public OnPlayerDeath(playerid, killerid, reason)
{
   new string[128];
new name[MAX_PLAYER_NAME];
new name2[MAX_PLAYER_NAME];
new deathreason[20];
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
       ClearAnimations(playerid);
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(killerid, name2, sizeof(name2));
if(killerid != INVALID_PLAYER_ID)
{
if(GetPlayerWeapon(killerid) != reason)
{
   if(AntiFakeKill == 1)
   {
       if(reason !=  51 || reason != 50 || reason != 18 || reason == 36 || reason == 35 || reason == 40 || reason == 16)
        {
       if(FakeKillWarns[playerid] == 4)
{
format(string, sizeof(string), "%s (%d), je kikan od LS Paradise AC tbog moguceg laznog umiranja.", name, playerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(playerid,COLOR_LIGHTBLUE, "Kikan si od LS Paradise AC zbog moguceg Laznog umiranja.");
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat je kikao %s zbog: Laznog umiranja.",d,m,y,h,mi,s,name);
KickLog(string);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Kikan od LS Paradise AC - Lazno umiranje.",d,m,y,h,mi,s,name);
AddPunishment(playerid, string);
Kick(playerid);
}
format(string, sizeof(string), "[LS Paradise AC]: %s (%d) Moguce da koristi Lazno umiranje; Provjeri ga odmah!!", name, playerid);
SendAdminMessage(COLOR_YELLOW, string);
PlayerSuspicious[playerid] = 1;
PlayerFakeDeathHacking[playerid] = 1;
PlayerGotSpottedRecently[playerid] = 1;
FakeKillWarns[playerid] ++;
SetTimerEx("ResetAcWarn", 300000, 0, "i", playerid);
}
}
}
}
if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
{
   if(AntiDriveBy == 1)
   {
       new model = GetVehicleModel(GetPlayerVehicleID(killerid));
       if(model != 520 || model != 425 || model != 432)
       {
       PlayerInfo[killerid][pWarns] ++;
   if(PlayerInfo[playerid][pWarns] == 3)
{
       format(string, sizeof(string), "%s (%d), je kikan od LS Paradise-AC zbog pretjeranog drive by ubojstva.", name2, killerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(killerid,COLOR_LIGHTBLUE, "Kikan si od LS Paradise-AC zbog pretjeranog drive by ubojstva");
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat je kikao %s zbog: pretjeranog drive by ubojstva",d,m,y,h,mi,s,name2);
KickLog(string);
Kick(killerid);
}
else
{
   format(string, sizeof(string), "%s (%d), je dobio warn od LS Paradise zbog drive by ubojstva.", name2, killerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(killerid,COLOR_LIGHTBLUE, "Ti si dobio warn od LS Paradise zbog pretjeranog drive by ubojstva");
format(string, sizeof(string), "LS Paradise: %s je ubio nekog putem drive by ubojstva; igrac je dobio warn.", name2);
SendAdminMessage(COLOR_YELLOW, string);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Dobio si warn od  LS Paradise - Razlog: Drive by ubojstvo.",d,m,y,h,mi,s);
AddPunishment(killerid, string);
}
}
}
}
if(killerid != INVALID_PLAYER_ID)
{
   if(reason == 0) { deathreason = "Melee"; }
   else if(reason == 36 || reason == 35 || reason == 40 || reason == 16) { deathreason = "Explosion"; }
   else if(reason == 18 || reason == 37) { deathreason = "Fire"; }
   else if(reason == 51) { deathreason = "Explosion"; }
   else if(reason == 50) { deathreason = "Heli-Kill"; }
   //else { GetWeaponName(reason, deathreason, sizeof(deathreason)); }
   //format(string, sizeof(string),"[INFO]: %s (%d) je ubijen od %s (%d) - %s", name,playerid,name2,killerid,deathreason); //[cenzura]
   //SendAdminMessage(COLOR_GREEN, string);
}
else
{
   new text[30];
   if(reason == 51) { text = "Explosion"; }
   else if(reason == 53) { text = "Drowned"; }
   else if(reason == 54) { text = "Collision"; }
   else { text = "Death"; }
   //format(string, sizeof(string),"[INFO]: %s (%d) je ubijen od Server-a. (%s)",name,playerid, text); //[cenzura]
   //SendAdminMessage(COLOR_GREEN, string);
}
new playercash;
new victimteam = gTeam[playerid];
new Float:px,Float:py,Float:pz;
new killerteam = gTeam[killerid];
ScriptMoneyUpdated[playerid] = 1;
TextDrawHideForPlayer(playerid, Textdraw39[playerid]);
TextDrawHideForPlayer(playerid, Textdraw40[playerid]);
gPlayerSpawned[playerid] = 0;
if(PlayerInfo[playerid][pAdminDuty] >= 1) { PlayerInfo[playerid][pAdminDuty] = 0; }
GetPlayerPos(playerid, px, py, pz);

if (PlayerInfo[killerid][pAchievement9] == 0 && PlayerInfo[killerid][pKills] == 1)
{
ShowPlayerDialog(killerid,509,DIALOG_STYLE_MSGBOX,"Achievements:\n Newbie Killer (9)","Congratulations, You have Achieved The 'Newbie Killer' Badge! \n You Won 100$","Okay","Cancel");
SafeGivePlayerMoney(killerid,100);
PlayerInfo[killerid][pAchievement9] = 1;
}
if (PlayerInfo[killerid][pAchievement10] == 0 && PlayerInfo[killerid][pKills] == 75)
{
ShowPlayerDialog(killerid,510,DIALOG_STYLE_MSGBOX,"Achievements:\n Serial Killer (10)","Congratulations, You have Achieved The 'Serial Killer' Badge! \n You Won 250$","Okay","Cancel");
SafeGivePlayerMoney(killerid,250);
PlayerInfo[killerid][pAchievement10] = 1;
}
if (PlayerInfo[killerid][pAchievement11] == 0 && PlayerInfo[killerid][pKills] == 150)
{
ShowPlayerDialog(killerid,511,DIALOG_STYLE_MSGBOX,"Achievements:\n Assassin (11)","Congratulations, You have Achieved The 'Assassin' Badge! \n You Won 500$","Okay","Cancel");
SafeGivePlayerMoney(killerid,500);
PlayerInfo[killerid][pAchievement11] = 1;
}
if(gPlayerUsingLoopingAnim[playerid])
{
       gPlayerUsingLoopingAnim[playerid] = 0;
       TextDrawHideForPlayer(playerid,txtAnimHelper);
}
if(WantedPoints[playerid] > 0)
{
   new dstring[128];
new wanted = WantedPoints[playerid];
new diecash = 0;
    while(WantedPoints[playerid] > 0)
   {
       diecash += 500;
       WantedPoints[playerid] --;
   }
   format(dstring, sizeof(dstring), "Izgubili ste $%d zbog umiranja sa %d wanted poena.", diecash, wanted);
   SendClientMessage(playerid, COLOR_YELLOW, dstring);
   SafeGivePlayerMoney(playerid, - diecash);
   PlayerInfo[playerid][pWantedDeaths] += 1;
}
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
if(PlayerInfo[playerid][pDonateRank] > 0) { SetPlayerHealth(playerid, 100.0); }
else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); }
MedicBill[playerid] = 1;
gPlayerSpawned[playerid] = 1;
SafeTime[playerid] = 60;
Checked[playerid] = 1;
PlayerGotSpottedRecently[playerid] = 1;
SetTimerEx("ResetAcWarn",20000,false, "i", playerid);
if(killerid != 255)
{
if(GetPlayerState(killerid) == 2)
{
   if(ProxDetectorS(20, killerid, playerid))
   {
       if(!IsPlayerInAnyVehicle(playerid))
       {
if(PlayerInfo[killerid][pMember] == 1||PlayerInfo[killerid][pLeader] == 1||PlayerInfo[killerid][pMember] == 2||PlayerInfo[killerid][pLeader] ==2)
    {
       SendClientMessage(killerid, COLOR_YELLOW, "Ovo je drive by ubojstvo. Ne koristite ga.");
return 1;
}
SetPlayerCriminal(killerid,255,"Manslaughter");
return 1;
}
}
}
}
if (reason == 22)
{
if (PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000)
{
   PlayerInfo[killerid][pPistSkill] += 2;
   SetPlayerSkills(killerid);
}
}
if (reason == 23)
{
if (PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000)
{
   PlayerInfo[killerid][pSilenSkill] += 2;
   SetPlayerSkills(killerid);
 }
if (PlayerInfo[killerid][pAchievement0] == 0)
{
   ShowPlayerDialog(killerid,500,DIALOG_STYLE_MSGBOX,"Achievements:\n Silent Kill (0)","Congratulations, You have Achieved The 'Silent Kill' Badge! \n You Won 200$ And 50+ of Skill!","Okay","Cancel");
PlayerInfo[killerid][pSilenSkill] += 50;
SafeGivePlayerMoney(killerid,200);
PlayerInfo[playerid][pAchievement0] = 0;
}
}
if (reason == 24)
{
if (PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000)
{
   PlayerInfo[killerid][pDesertSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 25)
{
if (PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000)
{
   PlayerInfo[killerid][pShotgSkill] += 2;
   SetPlayerSkills(killerid);
}
}
if (reason == 26)
{
if (PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 800)
{
   PlayerInfo[killerid][pSawnSkill] += 2;
   SetPlayerSkills(killerid);
}
}
if (reason == 27)
{
if (PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000)
{
   PlayerInfo[killerid][pCombSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 28 || reason == 32)
{
if (PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 800)
{
   PlayerInfo[killerid][pUziSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 29)
{
if (PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000)
{
   PlayerInfo[killerid][pSmgSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 30)
{
if (PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000)
{
   PlayerInfo[killerid][pAkSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 31)
{
if (PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000)
{
   PlayerInfo[killerid][pM4Skill] += 2;
   SetPlayerSkills(killerid);
}
}


if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller,  COLOR_GRAD2, "** Linija smrti....");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
ClearCrime(playerid);
if(GettingCK[playerid] < 999)
{
   if(IsPlayerConnected(killerid))
   {
       if(OnCK[killerid] < 999)
       {
           new killer[MAX_PLAYER_NAME];
           new dier[MAX_PLAYER_NAME];
           GetPlayerName(playerid, dier, sizeof(dier));
GetPlayerName(killerid, killer, sizeof(killer));
           format(string, sizeof(string), "* %s je izvrsio ubojstvo na tebi, nisi u mogucnosti igrati sa ovim likom.",killer);
           SendClientMessage(playerid, COLOR_LIGHTRED, string);
           format(string, sizeof(string), "** %s je ubijen od %s **",killer,dier);
           CKLog(string);
           BroadCast(COLOR_LIGHTRED, string);
           PlayerInfo[playerid][pCK] = 1;
           if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
           else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
           if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
           else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
           KickPlayer[playerid] = 1;
       }
   }
}
if(PlayerInfo[playerid][pHeadValue] > 0)
{
   if(IsPlayerConnected(killerid))
   {
   if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8)
   {
       if(GoChase[killerid] == playerid)
       {
           //ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
SafeGivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
format(string,128,"<< Hitman %s je ispuno ugovor nad %s i odnesao $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
}
}
if(victimteam >= 4)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
new slice = 100; //$100
playercash = GetPlayerMoney(playerid);
if(gTeam[killerid] != 2) { WantedPoints[killerid] += 2; } //+ 2 wanted points
if(SafeTime[playerid] <= 0)
{
if(gTeam[killerid] != gTeam[playerid])
{
if(GetPlayerState(killerid) == 1)
{
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2;
}
else
{
PlayerInfo[killerid][pKills]++;
}
PlayerInfo[playerid][pKills]--;
}
}
/*if (strlen(deathreason) > 0)// patch
{
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || gTeam[killerid] == gTeam[playerid])//med kill criminal
{
format(string, sizeof(string), ".: %s murdered %s. (%s) :.", killer, name, deathreason);
}
else
{
format(string, sizeof(string), ".: %s murdered %s. (%s) for $%d :.", killer, name, deathreason, slice);
}

}
else
{
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill || gTeam[killerid] == gTeam[playerid]))
{
format(string, sizeof(string), ".: %s murdered %s :.", killer, name);
}
else
{
format(string, sizeof(string), ".: %s murdered %s for $%d :.", killer, name, slice);
}
}*/
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
{
slice = 0;
}
if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
{
slice = 0;
}
if (playercash > 0)
{
SafeGivePlayerMoney(playerid, -slice);
}
else
{
slice = slice+500;
}
//SafeGivePlayerMoney(killerid, slice);
//GameTextForPlayer(playerid, dmessage, 5000, 2);
PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
if (((gTeam[killerid]) == 3) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) == 3) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
}
}
else if (victimteam == 2)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Cop kill
PlayerInfo[playerid][pKills]--;
if (gTeam[killerid] == 2)//cops kill cop
{
//format(string,128,".: Officer %s murdered Officer %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
}
else
{
//format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason);
   }
if (gTeam[killerid] >= 3)
{
   WantedPoints[killerid] += 2; //+ 2 wanted points
if(reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
}
if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
{
if(GetPlayerState(killerid) == 1)
{
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
}
else
{
PlayerInfo[killerid][pKills]++;
}
WantedPoints[killerid]+=2;
}
//BroadCast(COLOR_RED, string);
}
}
else if (victimteam == 3)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Civ kill
if ((gTeam[killerid]) == 2)//cops kill civ
{
   if(WantedLevel[playerid] < 1)
   {
//format(string,128,".: Officer %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
}
else
{
//format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
WantedPoints[killerid] += 2;
   }
if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
   //BroadCast(COLOR_RED, string);
}
}
else if (victimteam == 1)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Civ kill
if ((gTeam[killerid]) == 2)//cops kill civ
{
//format(string,128,".: Officer %s murdered Paramedic %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
else if ((gTeam[killerid]) == 1)//med kill civ
{
//format(string,128,".: Paramedic %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
else
{
//format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
   }
if (((gTeam[killerid]) == 4) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) == 3) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
   //BroadCast(COLOR_RED, string);
}
}
if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
{
   SetPlayerFree(playerid,killerid, "Ubijen");
}
if (BusrouteEast[playerid][0] != 0 || BusrouteWest[playerid][0] != 0)
{
if (BusrouteEast[playerid][0] != 0) BusrouteEnd(playerid, BusrouteEast[playerid][1]);
else if (BusrouteWest[playerid][0] != 0) BusrouteEnd(playerid, BusrouteWest[playerid][1]);
else BusrouteEnd(playerid, 0);
}
if(FarmerVar[playerid] != 0)
{
   FarmerVar[playerid] = 0;
   DisablePlayerCheckpoint(playerid);
}
if(DrugFarmerVar[playerid] != 0)
{
DrugFarmerVar[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
if(SmugglerWork[playerid] != 0)
{
   SmugglerWork[playerid] = 0;
   DisablePlayerCheckpoint(playerid);
}
killerid = INVALID_PLAYER_ID;
SetRealMoney(playerid, ScriptMoney[playerid]);
SetPlayerColor(playerid,0xBBBBBB00);
   SafeResetPlayerWeapons(playerid);
return 1;
}
Poslednja Izmena: Jun 13, 2011, 19:03:52 POSLE PODNE od [LYG] $--L84S--$

Citat: FireMan poslato Jun 13, 2011, 19:02:58 POSLE PODNE
public OnPlayerDeath(playerid, killerid, reason)
{
   new string[128];
new name[MAX_PLAYER_NAME];
new name2[MAX_PLAYER_NAME];
new deathreason[20];
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
       ClearAnimations(playerid);
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(killerid, name2, sizeof(name2));
if(killerid != INVALID_PLAYER_ID)
{
if(GetPlayerWeapon(killerid) != reason)
{
   if(AntiFakeKill == 1)
   {
       if(reason !=  51 || reason != 50 || reason != 18 || reason == 36 || reason == 35 || reason == 40 || reason == 16)
        {
       if(FakeKillWarns[playerid] == 4)
{
format(string, sizeof(string), "%s (%d), je kikan od LS Paradise AC tbog moguceg laznog umiranja.", name, playerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(playerid,COLOR_LIGHTBLUE, "Kikan si od LS Paradise AC zbog moguceg Laznog umiranja.");
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat je kikao %s zbog: Laznog umiranja.",d,m,y,h,mi,s,name);
KickLog(string);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Kikan od LS Paradise AC - Lazno umiranje.",d,m,y,h,mi,s,name);
AddPunishment(playerid, string);
Kick(playerid);
}
format(string, sizeof(string), "[LS Paradise AC]: %s (%d) Moguce da koristi Lazno umiranje; Provjeri ga odmah!!", name, playerid);
SendAdminMessage(COLOR_YELLOW, string);
PlayerSuspicious[playerid] = 1;
PlayerFakeDeathHacking[playerid] = 1;
PlayerGotSpottedRecently[playerid] = 1;
FakeKillWarns[playerid] ++;
SetTimerEx("ResetAcWarn", 300000, 0, "i", playerid);
}
}
}
}
if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
{
   if(AntiDriveBy == 1)
   {
       new model = GetVehicleModel(GetPlayerVehicleID(killerid));
       if(model != 520 || model != 425 || model != 432)
       {
       PlayerInfo[killerid][pWarns] ++;
   if(PlayerInfo[playerid][pWarns] == 3)
{
       format(string, sizeof(string), "%s (%d), je kikan od LS Paradise-AC zbog pretjeranog drive by ubojstva.", name2, killerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(killerid,COLOR_LIGHTBLUE, "Kikan si od LS Paradise-AC zbog pretjeranog drive by ubojstva");
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat je kikao %s zbog: pretjeranog drive by ubojstva",d,m,y,h,mi,s,name2);
KickLog(string);
Kick(killerid);
}
else
{
   format(string, sizeof(string), "%s (%d), je dobio warn od LS Paradise zbog drive by ubojstva.", name2, killerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(killerid,COLOR_LIGHTBLUE, "Ti si dobio warn od LS Paradise zbog pretjeranog drive by ubojstva");
format(string, sizeof(string), "LS Paradise: %s je ubio nekog putem drive by ubojstva; igrac je dobio warn.", name2);
SendAdminMessage(COLOR_YELLOW, string);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Dobio si warn od  LS Paradise - Razlog: Drive by ubojstvo.",d,m,y,h,mi,s);
AddPunishment(killerid, string);
}
}
}
}
if(killerid != INVALID_PLAYER_ID)
{
   if(reason == 0) { deathreason = "Melee"; }
   else if(reason == 36 || reason == 35 || reason == 40 || reason == 16) { deathreason = "Explosion"; }
   else if(reason == 18 || reason == 37) { deathreason = "Fire"; }
   else if(reason == 51) { deathreason = "Explosion"; }
   else if(reason == 50) { deathreason = "Heli-Kill"; }
   //else { GetWeaponName(reason, deathreason, sizeof(deathreason)); }
   //format(string, sizeof(string),"[INFO]: %s (%d) je ubijen od %s (%d) - %s", name,playerid,name2,killerid,deathreason); //[cenzura]
   //SendAdminMessage(COLOR_GREEN, string);
}
else
{
   new text[30];
   if(reason == 51) { text = "Explosion"; }
   else if(reason == 53) { text = "Drowned"; }
   else if(reason == 54) { text = "Collision"; }
   else { text = "Death"; }
   //format(string, sizeof(string),"[INFO]: %s (%d) je ubijen od Server-a. (%s)",name,playerid, text); //[cenzura]
   //SendAdminMessage(COLOR_GREEN, string);
}
new playercash;
new victimteam = gTeam[playerid];
new Float:px,Float:py,Float:pz;
new killerteam = gTeam[killerid];
ScriptMoneyUpdated[playerid] = 1;
TextDrawHideForPlayer(playerid, Textdraw39[playerid]);
TextDrawHideForPlayer(playerid, Textdraw40[playerid]);
gPlayerSpawned[playerid] = 0;
if(PlayerInfo[playerid][pAdminDuty] >= 1) { PlayerInfo[playerid][pAdminDuty] = 0; }
GetPlayerPos(playerid, px, py, pz);

if (PlayerInfo[killerid][pAchievement9] == 0 && PlayerInfo[killerid][pKills] == 1)
{
ShowPlayerDialog(killerid,509,DIALOG_STYLE_MSGBOX,"Achievements:\n Newbie Killer (9)","Congratulations, You have Achieved The 'Newbie Killer' Badge! \n You Won 100$","Okay","Cancel");
SafeGivePlayerMoney(killerid,100);
PlayerInfo[killerid][pAchievement9] = 1;
}
if (PlayerInfo[killerid][pAchievement10] == 0 && PlayerInfo[killerid][pKills] == 75)
{
ShowPlayerDialog(killerid,510,DIALOG_STYLE_MSGBOX,"Achievements:\n Serial Killer (10)","Congratulations, You have Achieved The 'Serial Killer' Badge! \n You Won 250$","Okay","Cancel");
SafeGivePlayerMoney(killerid,250);
PlayerInfo[killerid][pAchievement10] = 1;
}
if (PlayerInfo[killerid][pAchievement11] == 0 && PlayerInfo[killerid][pKills] == 150)
{
ShowPlayerDialog(killerid,511,DIALOG_STYLE_MSGBOX,"Achievements:\n Assassin (11)","Congratulations, You have Achieved The 'Assassin' Badge! \n You Won 500$","Okay","Cancel");
SafeGivePlayerMoney(killerid,500);
PlayerInfo[killerid][pAchievement11] = 1;
}
if(gPlayerUsingLoopingAnim[playerid])
{
       gPlayerUsingLoopingAnim[playerid] = 0;
       TextDrawHideForPlayer(playerid,txtAnimHelper);
}
if(WantedPoints[playerid] > 0)
{
   new dstring[128];
new wanted = WantedPoints[playerid];
new diecash = 0;
    while(WantedPoints[playerid] > 0)
   {
       diecash += 500;
       WantedPoints[playerid] --;
   }
   format(dstring, sizeof(dstring), "Izgubili ste $%d zbog umiranja sa %d wanted poena.", diecash, wanted);
   SendClientMessage(playerid, COLOR_YELLOW, dstring);
   SafeGivePlayerMoney(playerid, - diecash);
   PlayerInfo[playerid][pWantedDeaths] += 1;
}
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
if(PlayerInfo[playerid][pDonateRank] > 0) { SetPlayerHealth(playerid, 100.0); }
else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); }
MedicBill[playerid] = 1;
gPlayerSpawned[playerid] = 1;
SafeTime[playerid] = 60;
Checked[playerid] = 1;
PlayerGotSpottedRecently[playerid] = 1;
SetTimerEx("ResetAcWarn",20000,false, "i", playerid);
if(killerid != 255)
{
if(GetPlayerState(killerid) == 2)
{
   if(ProxDetectorS(20, killerid, playerid))
   {
       if(!IsPlayerInAnyVehicle(playerid))
       {
if(PlayerInfo[killerid][pMember] == 1||PlayerInfo[killerid][pLeader] == 1||PlayerInfo[killerid][pMember] == 2||PlayerInfo[killerid][pLeader] ==2)
    {
       SendClientMessage(killerid, COLOR_YELLOW, "Ovo je drive by ubojstvo. Ne koristite ga.");
return 1;
}
SetPlayerCriminal(killerid,255,"Manslaughter");
return 1;
}
}
}
}
if (reason == 22)
{
if (PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000)
{
   PlayerInfo[killerid][pPistSkill] += 2;
   SetPlayerSkills(killerid);
}
}
if (reason == 23)
{
if (PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000)
{
   PlayerInfo[killerid][pSilenSkill] += 2;
   SetPlayerSkills(killerid);
 }
if (PlayerInfo[killerid][pAchievement0] == 0)
{
   ShowPlayerDialog(killerid,500,DIALOG_STYLE_MSGBOX,"Achievements:\n Silent Kill (0)","Congratulations, You have Achieved The 'Silent Kill' Badge! \n You Won 200$ And 50+ of Skill!","Okay","Cancel");
PlayerInfo[killerid][pSilenSkill] += 50;
SafeGivePlayerMoney(killerid,200);
PlayerInfo[playerid][pAchievement0] = 0;
}
}
if (reason == 24)
{
if (PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000)
{
   PlayerInfo[killerid][pDesertSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 25)
{
if (PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000)
{
   PlayerInfo[killerid][pShotgSkill] += 2;
   SetPlayerSkills(killerid);
}
}
if (reason == 26)
{
if (PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 800)
{
   PlayerInfo[killerid][pSawnSkill] += 2;
   SetPlayerSkills(killerid);
}
}
if (reason == 27)
{
if (PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000)
{
   PlayerInfo[killerid][pCombSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 28 || reason == 32)
{
if (PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 800)
{
   PlayerInfo[killerid][pUziSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 29)
{
if (PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000)
{
   PlayerInfo[killerid][pSmgSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 30)
{
if (PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000)
{
   PlayerInfo[killerid][pAkSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 31)
{
if (PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000)
{
   PlayerInfo[killerid][pM4Skill] += 2;
   SetPlayerSkills(killerid);
}
}


if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller,  COLOR_GRAD2, "** Linija smrti....");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
ClearCrime(playerid);
if(GettingCK[playerid] < 999)
{
   if(IsPlayerConnected(killerid))
   {
       if(OnCK[killerid] < 999)
       {
           new killer[MAX_PLAYER_NAME];
           new dier[MAX_PLAYER_NAME];
           GetPlayerName(playerid, dier, sizeof(dier));
GetPlayerName(killerid, killer, sizeof(killer));
           format(string, sizeof(string), "* %s je izvrsio ubojstvo na tebi, nisi u mogucnosti igrati sa ovim likom.",killer);
           SendClientMessage(playerid, COLOR_LIGHTRED, string);
           format(string, sizeof(string), "** %s je ubijen od %s **",killer,dier);
           CKLog(string);
           BroadCast(COLOR_LIGHTRED, string);
           PlayerInfo[playerid][pCK] = 1;
           if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
           else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
           if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
           else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
           KickPlayer[playerid] = 1;
       }
   }
}
if(PlayerInfo[playerid][pHeadValue] > 0)
{
   if(IsPlayerConnected(killerid))
   {
   if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8)
   {
       if(GoChase[killerid] == playerid)
       {
           //ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
SafeGivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
format(string,128,"<< Hitman %s je ispuno ugovor nad %s i odnesao $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
}
}
if(victimteam >= 4)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
new slice = 100; //$100
playercash = GetPlayerMoney(playerid);
if(gTeam[killerid] != 2) { WantedPoints[killerid] += 2; } //+ 2 wanted points
if(SafeTime[playerid] <= 0)
{
if(gTeam[killerid] != gTeam[playerid])
{
if(GetPlayerState(killerid) == 1)
{
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2;
}
else
{
PlayerInfo[killerid][pKills]++;
}
PlayerInfo[playerid][pKills]--;
}
}
/*if (strlen(deathreason) > 0)// patch
{
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || gTeam[killerid] == gTeam[playerid])//med kill criminal
{
format(string, sizeof(string), ".: %s murdered %s. (%s) :.", killer, name, deathreason);
}
else
{
format(string, sizeof(string), ".: %s murdered %s. (%s) for $%d :.", killer, name, deathreason, slice);
}

}
else
{
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill || gTeam[killerid] == gTeam[playerid]))
{
format(string, sizeof(string), ".: %s murdered %s :.", killer, name);
}
else
{
format(string, sizeof(string), ".: %s murdered %s for $%d :.", killer, name, slice);
}
}*/
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
{
slice = 0;
}
if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
{
slice = 0;
}
if (playercash > 0)
{
SafeGivePlayerMoney(playerid, -slice);
}
else
{
slice = slice+500;
}
//SafeGivePlayerMoney(killerid, slice);
//GameTextForPlayer(playerid, dmessage, 5000, 2);
PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
if (((gTeam[killerid]) == 3) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) == 3) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
}
}
else if (victimteam == 2)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Cop kill
PlayerInfo[playerid][pKills]--;
if (gTeam[killerid] == 2)//cops kill cop
{
//format(string,128,".: Officer %s murdered Officer %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
}
else
{
//format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason);
   }
if (gTeam[killerid] >= 3)
{
   WantedPoints[killerid] += 2; //+ 2 wanted points
if(reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
}
if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
{
if(GetPlayerState(killerid) == 1)
{
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
}
else
{
PlayerInfo[killerid][pKills]++;
}
WantedPoints[killerid]+=2;
}
//BroadCast(COLOR_RED, string);
}
}
else if (victimteam == 3)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Civ kill
if ((gTeam[killerid]) == 2)//cops kill civ
{
   if(WantedLevel[playerid] < 1)
   {
//format(string,128,".: Officer %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
}
else
{
//format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
WantedPoints[killerid] += 2;
   }
if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
   //BroadCast(COLOR_RED, string);
}
}
else if (victimteam == 1)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Civ kill
if ((gTeam[killerid]) == 2)//cops kill civ
{
//format(string,128,".: Officer %s murdered Paramedic %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
else if ((gTeam[killerid]) == 1)//med kill civ
{
//format(string,128,".: Paramedic %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
else
{
//format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
   }
if (((gTeam[killerid]) == 4) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) == 3) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
   //BroadCast(COLOR_RED, string);
}
}
if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
{
   SetPlayerFree(playerid,killerid, "Ubijen");
}
if (BusrouteEast[playerid][0] != 0 || BusrouteWest[playerid][0] != 0)
{
if (BusrouteEast[playerid][0] != 0) BusrouteEnd(playerid, BusrouteEast[playerid][1]);
else if (BusrouteWest[playerid][0] != 0) BusrouteEnd(playerid, BusrouteWest[playerid][1]);
else BusrouteEnd(playerid, 0);
}
if(FarmerVar[playerid] != 0)
{
   FarmerVar[playerid] = 0;
   DisablePlayerCheckpoint(playerid);
}
if(DrugFarmerVar[playerid] != 0)
{
DrugFarmerVar[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
if(SmugglerWork[playerid] != 0)
{
   SmugglerWork[playerid] = 0;
   DisablePlayerCheckpoint(playerid);
}
killerid = INVALID_PLAYER_ID;
SetRealMoney(playerid, ScriptMoney[playerid]);
SetPlayerColor(playerid,0xBBBBBB00);
   SafeResetPlayerWeapons(playerid);
return 1;
}

Popravljeno je hvala ti....
Al mos li mi reci tocno sto si dirao...
Trazim "Profesionalnog Skriptera" da mi napravi jednu stvar,cijena nebitna nek mi se javi na pm....trazim lika koji zna raditi ne nekog pocetnika

Citat: Ante_Street poslato Jun 13, 2011, 19:27:15 POSLE PODNE
Citat: FireMan poslato Jun 13, 2011, 19:02:58 POSLE PODNE
public OnPlayerDeath(playerid, killerid, reason)
{
   new string[128];
new name[MAX_PLAYER_NAME];
new name2[MAX_PLAYER_NAME];
new deathreason[20];
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
       ClearAnimations(playerid);
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(killerid, name2, sizeof(name2));
if(killerid != INVALID_PLAYER_ID)
{
if(GetPlayerWeapon(killerid) != reason)
{
   if(AntiFakeKill == 1)
   {
       if(reason !=  51 || reason != 50 || reason != 18 || reason == 36 || reason == 35 || reason == 40 || reason == 16)
        {
       if(FakeKillWarns[playerid] == 4)
{
format(string, sizeof(string), "%s (%d), je kikan od LS Paradise AC tbog moguceg laznog umiranja.", name, playerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(playerid,COLOR_LIGHTBLUE, "Kikan si od LS Paradise AC zbog moguceg Laznog umiranja.");
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat je kikao %s zbog: Laznog umiranja.",d,m,y,h,mi,s,name);
KickLog(string);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Kikan od LS Paradise AC - Lazno umiranje.",d,m,y,h,mi,s,name);
AddPunishment(playerid, string);
Kick(playerid);
}
format(string, sizeof(string), "[LS Paradise AC]: %s (%d) Moguce da koristi Lazno umiranje; Provjeri ga odmah!!", name, playerid);
SendAdminMessage(COLOR_YELLOW, string);
PlayerSuspicious[playerid] = 1;
PlayerFakeDeathHacking[playerid] = 1;
PlayerGotSpottedRecently[playerid] = 1;
FakeKillWarns[playerid] ++;
SetTimerEx("ResetAcWarn", 300000, 0, "i", playerid);
}
}
}
}
if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
{
   if(AntiDriveBy == 1)
   {
       new model = GetVehicleModel(GetPlayerVehicleID(killerid));
       if(model != 520 || model != 425 || model != 432)
       {
       PlayerInfo[killerid][pWarns] ++;
   if(PlayerInfo[playerid][pWarns] == 3)
{
       format(string, sizeof(string), "%s (%d), je kikan od LS Paradise-AC zbog pretjeranog drive by ubojstva.", name2, killerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(killerid,COLOR_LIGHTBLUE, "Kikan si od LS Paradise-AC zbog pretjeranog drive by ubojstva");
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat je kikao %s zbog: pretjeranog drive by ubojstva",d,m,y,h,mi,s,name2);
KickLog(string);
Kick(killerid);
}
else
{
   format(string, sizeof(string), "%s (%d), je dobio warn od LS Paradise zbog drive by ubojstva.", name2, killerid);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(killerid,COLOR_LIGHTBLUE, "Ti si dobio warn od LS Paradise zbog pretjeranog drive by ubojstva");
format(string, sizeof(string), "LS Paradise: %s je ubio nekog putem drive by ubojstva; igrac je dobio warn.", name2);
SendAdminMessage(COLOR_YELLOW, string);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Dobio si warn od  LS Paradise - Razlog: Drive by ubojstvo.",d,m,y,h,mi,s);
AddPunishment(killerid, string);
}
}
}
}
if(killerid != INVALID_PLAYER_ID)
{
   if(reason == 0) { deathreason = "Melee"; }
   else if(reason == 36 || reason == 35 || reason == 40 || reason == 16) { deathreason = "Explosion"; }
   else if(reason == 18 || reason == 37) { deathreason = "Fire"; }
   else if(reason == 51) { deathreason = "Explosion"; }
   else if(reason == 50) { deathreason = "Heli-Kill"; }
   //else { GetWeaponName(reason, deathreason, sizeof(deathreason)); }
   //format(string, sizeof(string),"[INFO]: %s (%d) je ubijen od %s (%d) - %s", name,playerid,name2,killerid,deathreason); //[cenzura]
   //SendAdminMessage(COLOR_GREEN, string);
}
else
{
   new text[30];
   if(reason == 51) { text = "Explosion"; }
   else if(reason == 53) { text = "Drowned"; }
   else if(reason == 54) { text = "Collision"; }
   else { text = "Death"; }
   //format(string, sizeof(string),"[INFO]: %s (%d) je ubijen od Server-a. (%s)",name,playerid, text); //[cenzura]
   //SendAdminMessage(COLOR_GREEN, string);
}
new playercash;
new victimteam = gTeam[playerid];
new Float:px,Float:py,Float:pz;
new killerteam = gTeam[killerid];
ScriptMoneyUpdated[playerid] = 1;
TextDrawHideForPlayer(playerid, Textdraw39[playerid]);
TextDrawHideForPlayer(playerid, Textdraw40[playerid]);
gPlayerSpawned[playerid] = 0;
if(PlayerInfo[playerid][pAdminDuty] >= 1) { PlayerInfo[playerid][pAdminDuty] = 0; }
GetPlayerPos(playerid, px, py, pz);

if (PlayerInfo[killerid][pAchievement9] == 0 && PlayerInfo[killerid][pKills] == 1)
{
ShowPlayerDialog(killerid,509,DIALOG_STYLE_MSGBOX,"Achievements:\n Newbie Killer (9)","Congratulations, You have Achieved The 'Newbie Killer' Badge! \n You Won 100$","Okay","Cancel");
SafeGivePlayerMoney(killerid,100);
PlayerInfo[killerid][pAchievement9] = 1;
}
if (PlayerInfo[killerid][pAchievement10] == 0 && PlayerInfo[killerid][pKills] == 75)
{
ShowPlayerDialog(killerid,510,DIALOG_STYLE_MSGBOX,"Achievements:\n Serial Killer (10)","Congratulations, You have Achieved The 'Serial Killer' Badge! \n You Won 250$","Okay","Cancel");
SafeGivePlayerMoney(killerid,250);
PlayerInfo[killerid][pAchievement10] = 1;
}
if (PlayerInfo[killerid][pAchievement11] == 0 && PlayerInfo[killerid][pKills] == 150)
{
ShowPlayerDialog(killerid,511,DIALOG_STYLE_MSGBOX,"Achievements:\n Assassin (11)","Congratulations, You have Achieved The 'Assassin' Badge! \n You Won 500$","Okay","Cancel");
SafeGivePlayerMoney(killerid,500);
PlayerInfo[killerid][pAchievement11] = 1;
}
if(gPlayerUsingLoopingAnim[playerid])
{
       gPlayerUsingLoopingAnim[playerid] = 0;
       TextDrawHideForPlayer(playerid,txtAnimHelper);
}
if(WantedPoints[playerid] > 0)
{
   new dstring[128];
new wanted = WantedPoints[playerid];
new diecash = 0;
    while(WantedPoints[playerid] > 0)
   {
       diecash += 500;
       WantedPoints[playerid] --;
   }
   format(dstring, sizeof(dstring), "Izgubili ste $%d zbog umiranja sa %d wanted poena.", diecash, wanted);
   SendClientMessage(playerid, COLOR_YELLOW, dstring);
   SafeGivePlayerMoney(playerid, - diecash);
   PlayerInfo[playerid][pWantedDeaths] += 1;
}
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
if(PlayerInfo[playerid][pDonateRank] > 0) { SetPlayerHealth(playerid, 100.0); }
else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); }
MedicBill[playerid] = 1;
gPlayerSpawned[playerid] = 1;
SafeTime[playerid] = 60;
Checked[playerid] = 1;
PlayerGotSpottedRecently[playerid] = 1;
SetTimerEx("ResetAcWarn",20000,false, "i", playerid);
if(killerid != 255)
{
if(GetPlayerState(killerid) == 2)
{
   if(ProxDetectorS(20, killerid, playerid))
   {
       if(!IsPlayerInAnyVehicle(playerid))
       {
if(PlayerInfo[killerid][pMember] == 1||PlayerInfo[killerid][pLeader] == 1||PlayerInfo[killerid][pMember] == 2||PlayerInfo[killerid][pLeader] ==2)
    {
       SendClientMessage(killerid, COLOR_YELLOW, "Ovo je drive by ubojstvo. Ne koristite ga.");
return 1;
}
SetPlayerCriminal(killerid,255,"Manslaughter");
return 1;
}
}
}
}
if (reason == 22)
{
if (PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000)
{
   PlayerInfo[killerid][pPistSkill] += 2;
   SetPlayerSkills(killerid);
}
}
if (reason == 23)
{
if (PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000)
{
   PlayerInfo[killerid][pSilenSkill] += 2;
   SetPlayerSkills(killerid);
 }
if (PlayerInfo[killerid][pAchievement0] == 0)
{
   ShowPlayerDialog(killerid,500,DIALOG_STYLE_MSGBOX,"Achievements:\n Silent Kill (0)","Congratulations, You have Achieved The 'Silent Kill' Badge! \n You Won 200$ And 50+ of Skill!","Okay","Cancel");
PlayerInfo[killerid][pSilenSkill] += 50;
SafeGivePlayerMoney(killerid,200);
PlayerInfo[playerid][pAchievement0] = 0;
}
}
if (reason == 24)
{
if (PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000)
{
   PlayerInfo[killerid][pDesertSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 25)
{
if (PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000)
{
   PlayerInfo[killerid][pShotgSkill] += 2;
   SetPlayerSkills(killerid);
}
}
if (reason == 26)
{
if (PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 800)
{
   PlayerInfo[killerid][pSawnSkill] += 2;
   SetPlayerSkills(killerid);
}
}
if (reason == 27)
{
if (PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000)
{
   PlayerInfo[killerid][pCombSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 28 || reason == 32)
{
if (PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 800)
{
   PlayerInfo[killerid][pUziSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 29)
{
if (PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000)
{
   PlayerInfo[killerid][pSmgSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 30)
{
if (PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000)
{
   PlayerInfo[killerid][pAkSkill] += 2;
   SetPlayerSkills(killerid);
}
}

if (reason == 31)
{
if (PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000)
{
   PlayerInfo[killerid][pM4Skill] += 2;
   SetPlayerSkills(killerid);
}
}


if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller,  COLOR_GRAD2, "** Linija smrti....");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
ClearCrime(playerid);
if(GettingCK[playerid] < 999)
{
   if(IsPlayerConnected(killerid))
   {
       if(OnCK[killerid] < 999)
       {
           new killer[MAX_PLAYER_NAME];
           new dier[MAX_PLAYER_NAME];
           GetPlayerName(playerid, dier, sizeof(dier));
GetPlayerName(killerid, killer, sizeof(killer));
           format(string, sizeof(string), "* %s je izvrsio ubojstvo na tebi, nisi u mogucnosti igrati sa ovim likom.",killer);
           SendClientMessage(playerid, COLOR_LIGHTRED, string);
           format(string, sizeof(string), "** %s je ubijen od %s **",killer,dier);
           CKLog(string);
           BroadCast(COLOR_LIGHTRED, string);
           PlayerInfo[playerid][pCK] = 1;
           if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
           else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
           if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
           else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
           KickPlayer[playerid] = 1;
       }
   }
}
if(PlayerInfo[playerid][pHeadValue] > 0)
{
   if(IsPlayerConnected(killerid))
   {
   if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8)
   {
       if(GoChase[killerid] == playerid)
       {
           //ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
SafeGivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
format(string,128,"<< Hitman %s je ispuno ugovor nad %s i odnesao $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
}
}
if(victimteam >= 4)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
new slice = 100; //$100
playercash = GetPlayerMoney(playerid);
if(gTeam[killerid] != 2) { WantedPoints[killerid] += 2; } //+ 2 wanted points
if(SafeTime[playerid] <= 0)
{
if(gTeam[killerid] != gTeam[playerid])
{
if(GetPlayerState(killerid) == 1)
{
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2;
}
else
{
PlayerInfo[killerid][pKills]++;
}
PlayerInfo[playerid][pKills]--;
}
}
/*if (strlen(deathreason) > 0)// patch
{
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || gTeam[killerid] == gTeam[playerid])//med kill criminal
{
format(string, sizeof(string), ".: %s murdered %s. (%s) :.", killer, name, deathreason);
}
else
{
format(string, sizeof(string), ".: %s murdered %s. (%s) for $%d :.", killer, name, deathreason, slice);
}

}
else
{
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill || gTeam[killerid] == gTeam[playerid]))
{
format(string, sizeof(string), ".: %s murdered %s :.", killer, name);
}
else
{
format(string, sizeof(string), ".: %s murdered %s for $%d :.", killer, name, slice);
}
}*/
if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
{
slice = 0;
}
if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
{
slice = 0;
}
if (playercash > 0)
{
SafeGivePlayerMoney(playerid, -slice);
}
else
{
slice = slice+500;
}
//SafeGivePlayerMoney(killerid, slice);
//GameTextForPlayer(playerid, dmessage, 5000, 2);
PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
if (((gTeam[killerid]) == 3) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) == 3) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
}
}
else if (victimteam == 2)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Cop kill
PlayerInfo[playerid][pKills]--;
if (gTeam[killerid] == 2)//cops kill cop
{
//format(string,128,".: Officer %s murdered Officer %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
}
else
{
//format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason);
   }
if (gTeam[killerid] >= 3)
{
   WantedPoints[killerid] += 2; //+ 2 wanted points
if(reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
}
if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
{
if(GetPlayerState(killerid) == 1)
{
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
}
else
{
PlayerInfo[killerid][pKills]++;
}
WantedPoints[killerid]+=2;
}
//BroadCast(COLOR_RED, string);
}
}
else if (victimteam == 3)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Civ kill
if ((gTeam[killerid]) == 2)//cops kill civ
{
   if(WantedLevel[playerid] < 1)
   {
//format(string,128,".: Officer %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
}
else
{
//format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
WantedPoints[killerid] += 2;
   }
if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
   //BroadCast(COLOR_RED, string);
}
}
else if (victimteam == 1)
{
   if(IsPlayerConnected(killerid))
   {
//new killer[MAX_PLAYER_NAME];
//GetPlayerName(killerid, killer, sizeof(killer));
// Civ kill
if ((gTeam[killerid]) == 2)//cops kill civ
{
//format(string,128,".: Officer %s murdered Paramedic %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
else if ((gTeam[killerid]) == 1)//med kill civ
{
//format(string,128,".: Paramedic %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
SafeGivePlayerMoney(killerid, -suecost);
SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill
}
else
{
//format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
   }
if (((gTeam[killerid]) == 4) && reason != 49)
{
SetPlayerCriminal(killerid,255, "Ubojstvo 1.stupnja");
}
else if (((gTeam[killerid]) == 3) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Hit And Run");
}
   //BroadCast(COLOR_RED, string);
}
}
if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
{
   SetPlayerFree(playerid,killerid, "Ubijen");
}
if (BusrouteEast[playerid][0] != 0 || BusrouteWest[playerid][0] != 0)
{
if (BusrouteEast[playerid][0] != 0) BusrouteEnd(playerid, BusrouteEast[playerid][1]);
else if (BusrouteWest[playerid][0] != 0) BusrouteEnd(playerid, BusrouteWest[playerid][1]);
else BusrouteEnd(playerid, 0);
}
if(FarmerVar[playerid] != 0)
{
   FarmerVar[playerid] = 0;
   DisablePlayerCheckpoint(playerid);
}
if(DrugFarmerVar[playerid] != 0)
{
DrugFarmerVar[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
if(SmugglerWork[playerid] != 0)
{
   SmugglerWork[playerid] = 0;
   DisablePlayerCheckpoint(playerid);
}
killerid = INVALID_PLAYER_ID;
SetRealMoney(playerid, ScriptMoney[playerid]);
SetPlayerColor(playerid,0xBBBBBB00);
   SafeResetPlayerWeapons(playerid);
return 1;
}

Popravljeno je hvala ti....
Al mos li mi reci tocno sto si dirao...
Samo stavis :
ClearAnimations(playerid);
Poslednja Izmena: Jun 13, 2011, 19:30:33 POSLE PODNE od [LYG] $--L84S--$

na pocetku, ispod gettime je stavio
ClearAnimations(playerid);
To znaci da ce igracu uklonit sve animacije(u to spadaju i te boce,cigare...) koje radi...

Citat: | Fox ♥  | poslato Jun 13, 2011, 19:30:14 POSLE PODNE
na pocetku, ispod gettime je stavio
ClearAnimations(playerid);
To znaci da ce igracu uklonit sve animacije(u to spadaju i te boce,cigare...) koje radi...
Cek a kako sad vratit da igrac neumre direktno u par stotinki vec da padne na pod i umre((Pitam radi RP-a))?
Trazim "Profesionalnog Skriptera" da mi napravi jednu stvar,cijena nebitna nek mi se javi na pm....trazim lika koji zna raditi ne nekog pocetnika