Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid, killerid, reason)
- {
- Stvariizdeadha(playerid);
- PlayerInfo[playerid][pDeaths] += 1;
- PlayerInfo[killerid][pKills] += 1;
- DisablePlayerCheckpoint(playerid);
- DisablePlayerRaceCheckpoint(playerid);
- if(gPlayerUsingLoopingAnim[playerid]){gPlayerUsingLoopingAnim[playerid] = 0;}
- if(IsDead[playerid] == 1 && InCall[playerid] == 1 && Tallking[playerid] == 1){IsDead[playerid] = 1;}//MOB DEATH
- if(HitInfo[killerid][hitHit] == 1 && PlayerInfo[killerid][pMember] == 6)
- {
- if(hitmanid[killerid] == playerid)
- {
- new string[100], pdclan;
- new level = PlayerInfo[playerid][pScore];
- if(PlayerInfo[playerid][pMember] == 1)
- {
- pdclan = 300;
- }
- else
- {
- pdclan = 0;
- }
- HitInfo[killerid][hitCijena] = level*50+pdclan;
- format(string, sizeof(string), "[INFO]: Uspjesno ste rjesili metu pod imenom %s - zaradili ste %d$.", GetName(playerid), HitInfo[killerid][hitCijena]);
- SCM(killerid, COLOR_GOLD, string);
- Conti_GivePlayerMoney(killerid, HitInfo[killerid][hitCijena]);
- HitInfo[killerid][hitHit] = 0;
- PlayerInfo[killerid][pHitTime] = 500;
- hitmanid[killerid] = -1;
- HitInfo[killerid][hitCijena] = 0;
- }
- }
- if(IsBeingSpeced[playerid] == 1)
- {
- for(new i = 0; i != MAX_PLAYERS; ++i)
- {
- if(IsPlayerConnected(i))
- {
- if(spectatorid[i] == playerid)
- {
- TogglePlayerSpectating(i, false);
- PlayerTextDrawHide(playerid, ReconStateDate[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconIme[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconLevel[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconNovac[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconBanka[spectatorid[playerid]]);
- PlayerTextDrawHide(playerid, ReconTazzTie[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconAreaZatvor[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconZdravljePancir[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconZdravljeVozila[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconPrekid[spectatorid[playerid]]);
- }
- }
- }
- }
- if(SecretInfo[killerid][secretHit] == 1 && PlayerInfo[killerid][pMember] == 7)
- {
- if(secretid[killerid] == playerid)
- {
- new string[100], pdclan;
- new level = PlayerInfo[playerid][pScore];
- if(PlayerInfo[playerid][pMember] == 1)
- {
- pdclan = 300;
- }
- else
- {
- pdclan = 0;
- }
- SecretInfo[killerid][secretCijena] = level*50+pdclan;
- format(string, sizeof(string), "[INFO]: Uspjesno ste rjesili metu pod imenom %s - zaradili ste %d$.", GetName(playerid), SecretInfo[killerid][secretCijena]);
- SCM(killerid, COLOR_GOLD, string);
- Conti_GivePlayerMoney(killerid, SecretInfo[killerid][secretCijena]);
- SecretInfo[killerid][secretHit] = 0;
- PlayerInfo[killerid][pSecretTime] = 500;
- secretid[killerid] = -1;
- SecretInfo[killerid][secretCijena] = 0;
- }
- }
- //=============================================================================================================================================================================
- //WAR DEATH
- if(IsPlayerConnected(killerid) && WarAktivan == true && IgracUWaru[playerid] == 1 && IgracUWaru[killerid] == 1)
- {
- if(PlayerInfo[killerid][pMember] == WarTim1 && PlayerInfo[playerid][pMember] == WarTim2)
- {
- Tim1Skor++;
- }
- else if(PlayerInfo[killerid][pMember] == WarTim2 && PlayerInfo[playerid][pMember] == WarTim1)
- {
- Tim2Skor++;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment