Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid, killerid, reason)
- {
- PlayerInfo[killerid][pUbistava]++; PlayerInfo[playerid][pSmrti]++;
- ResetPlayerWeapons(playerid); ResetujVar(playerid);
- ////////////////////////////////////////////////////////////
- if(IgracPolicajac(killerid))
- {
- PlayerInfo[killerid][pTrazeniLevel] = 0;
- SetPlayerWantedLevel(killerid,0);
- }
- ////////////////////////////////////////////////////////////
- if(!IgracPolicajac(killerid) && IsPlayerConnected(playerid))
- {
- PostaviWanted(killerid, "Ubistvo", "Nepoznat");
- }
- ////////////////////////////////////////////////////////////
- if(GetPlayerWantedLevel(killerid) > 6)
- {
- SetPlayerWantedLevel(killerid, 6);
- PlayerInfo[killerid][pTrazeniLevel] = 6;
- }
- ////////////////////////////////////////////////////////////
- if(GetPlayerWantedLevel(playerid) > 0)
- {
- new string[256];
- g_NovacMinus(playerid, GetPlayerWantedLevel(playerid)*400);
- SCMF(playerid, -1, ""ZUTA"[INFO] "CRVENA"Izgubili ste %d$ zbog umiranja sa wanted level-om "ZUTA"%d!", GetPlayerWantedLevel(playerid)*400, GetPlayerWantedLevel(playerid));
- SetPlayerWantedLevel(playerid, 0); PlayerInfo[playerid][pTrazeniLevel] = 0;
- format(string,sizeof(string),""CRVENA"[UP:RP] "SIVA"Igrac %s je ubijen/se ubio sa wanted level-om!",GetName(playerid));
- AdminGameMaster(-1,string);
- }
- ////////////////////////////////////////////////////////////
- if(IsPlayerConnected(killerid) && GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
- {
- new string[256];
- format(string,sizeof(string), ""CRVENA"[UP:RP Anti DB] "SIVA"Igrac %s (ID:%d) je uradio Drive By nad igracem %s (ID:%d)!", GetName(killerid), killerid, GetName(playerid), playerid);
- AdminGameMaster(-1, string);
- }
- ////////////////////////////////////////////////////////////
- if(IsPlayerConnected(killerid) && PlayerInfo[playerid][pLevel] >= 1)
- {
- new string[256];
- format(string,sizeof(string), ""CRVENA"[UP:RP AK] "SIVA"Igrac %s (ID:%d) je ubio igraca %s (ID:%d)", GetName(killerid), killerid, GetName(playerid), playerid);
- AdminGameMaster(-1, string);
- }
- ////////////////////////////////////////////////////////////
- if(gPlayerUsingLoopingAnim[playerid])
- {
- gPlayerUsingLoopingAnim[playerid] = 0;
- }
- ////////////////////////////////////////////////////////////
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment