Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid, killerid, reason)
- {
- antifakekill[playerid] ++;
- SetTimerEx("antifakekill2", 1000,false,"i",playerid);
- RemovePlayerAttachedObject(playerid,0);
- RemovePlayerAttachedObject(playerid,1);
- RemovePlayerAttachedObject(playerid,2);
- RemovePlayerAttachedObject(playerid,3);
- RemovePlayerAttachedObject(playerid,4);
- RemovePlayerAttachedObject(playerid,5);
- RemovePlayerAttachedObject(playerid,6);
- RemovePlayerAttachedObject(playerid,7);
- RemovePlayerAttachedObject(playerid,8);
- RemovePlayerAttachedObject(playerid,9);
- SetPlayerArmour(playerid, 0);
- DisablePlayerCheckpoint(playerid);
- PosaoGPS[playerid] = 0;
- if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
- {
- PlayerInfo[killerid][pUbistava]++; PlayerInfo[playerid][pSmrti]++;
- ResetPlayerWeapons(playerid); ResetujVar(playerid);
- }
- ////////////////////////////////////////////////////////////
- if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
- {
- if(IgracPolicajac(killerid))
- {
- PlayerInfo[killerid][pTrazeniLevel] = 0;
- SetPlayerWantedLevel(killerid,0);
- SetPlayerColor(killerid,0xFFFFFF00);
- }
- if(IgracPolicajac(killerid))
- {
- PlayerInfo[killerid][pTrazeniLevel] = 0;
- SetPlayerWantedLevel(killerid,0);
- SetPlayerColor(killerid,0xFFFFFF00);
- }
- }
- ////////////////////////////////////////////////////////////
- if(!IgracPolicajac(killerid) && IsPlayerConnected(playerid))
- {
- if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
- {
- 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)*3000);
- SCMF(playerid, -1, ""ZUTA"[INFO] "CRVENA"Izgubili ste %d$ zbog umiranja sa wanted level-om "ZUTA"%d!", GetPlayerWantedLevel(playerid)*3000, GetPlayerWantedLevel(playerid));
- SetPlayerWantedLevel(playerid, 0); PlayerInfo[playerid][pTrazeniLevel] = 0;
- format(string,sizeof(string),""SPLAVA"[MC:RP] "SIVA"Igrac %s je ubijen/se ubio sa wanted level-om!",GetName(playerid));
- AdminGameMaster(-1,string);
- format(string,sizeof(string),""SPLAVA"[MC:RP] "SIVA"Igrac %s je ubijen/se ubio sa wanted level-om!",GetName(playerid));
- ChatPD(-1, string);
- SetPlayerColor(playerid, BELA2);
- }
- ////////////////////////////////////////////////////////////
- if(IsPlayerConnected(killerid) && GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
- {
- new string[256];
- format(string,sizeof(string), ""SPLAVA"[MC: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);
- SetPlayerColor(killerid, COLOR_RED);
- }
- ////////////////////////////////////////////////////////////
- if(IsPlayerConnected(killerid) && PlayerInfo[playerid][pLevel] >= 1)
- {
- new string[256];
- format(string,sizeof(string), ""SPLAVA"[MC:RP AK] "SIVA"Igrac %s (ID:%d) je ubio igraca %s (ID:%d)", GetName(killerid), killerid, GetName(playerid), playerid);
- AdminGameMaster(-1, string);
- if(PlayerInfo[killerid][pLider] >= 2 || PlayerInfo[killerid][pClan] >= 2)
- {
- SetPlayerColor(killerid, COLOR_RED);
- }
- else if(PlayerInfo[killerid][pLider] == 1 || PlayerInfo[killerid][pClan] == 1)
- {
- SetPlayerColor(killerid, BELA2);
- }
- else if(PlayerInfo[killerid][pLider] == 10 || PlayerInfo[killerid][pClan] == 10)
- {
- SetPlayerColor(killerid, BELA2);
- }
- else if(PlayerInfo[playerid][pAdmin] > 0 || PlayerInfo[playerid][pAdmin] < 6)
- {
- SetPlayerColor(killerid, BELA2);
- }
- }
- ////////////////////////////////////////////////////////////
- if(gPlayerUsingLoopingAnim[playerid])
- {
- gPlayerUsingLoopingAnim[playerid] = 0;
- }
- ////////////////////////////////////////////////////////////
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////////////////
- stock SpawnIgraca(playerid)
- {
- g_SetPlayerHealth(playerid, 99.0); vrataspawn[playerid] = false;
- if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_BAZA)
- {
- if(PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pClan] == 1)
- {
- SetPlayerPos(playerid, 1477.2086,-1780.2563,3288.7859);
- SetPlayerInterior(playerid, 0);
- SetPlayerColor(playerid, 0x2641FEAA);
- TogglePlayerControllable(playerid, 0);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- else if(PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pClan] == 2)
- {
- SetPlayerPos(playerid, 2125.8074,-2278.5754,20.6643);
- SetPlayerInterior(playerid, 0);
- }
- else if(PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pClan] == 3)
- {
- SetPlayerPos(playerid, 1329.0504,-638.9127,14280.8857);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid, 0);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- else if(PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pClan] == 4)
- {
- SetPlayerPos(playerid, 323.8689,1127.7897,1083.8828);
- SetPlayerInterior(playerid, 5);
- }
- else if(PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pClan] == 5)
- {
- SetPlayerPos(playerid, 2451.1052,-1688.5116,1013.5078);
- SetPlayerInterior(playerid, 2);
- }
- else if(PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pClan] == 6)
- {
- SetPlayerPos(playerid, 1785.8721,-1797.5588,-43.3141);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid, 0);
- g_GivePlayerWeapon(playerid, 43, 50);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- else if(PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pClan] == 7)
- {
- SetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
- SetPlayerInterior(playerid, 3);
- SetPlayerColor(playerid, 0x2641FEAA);
- TogglePlayerControllable(playerid, 0);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- else if(PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pClan] == 8)
- {
- SetPlayerPos(playerid, 1072.2762,-888.2515,43.3932);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid, 0);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- else if(PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pClan] == 9)
- {
- SetPlayerPos(playerid, 1727.7302,-1668.0768,22.6094);
- SetPlayerInterior(playerid, 18);
- SetPlayerHealth(playerid, 99.0);
- SetPlayerArmour(playerid, 99.0);
- TogglePlayerControllable(playerid, 0);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- else if(PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pClan] == 10)
- {
- SetPlayerPos(playerid, 254.2736,190.5443,1008.1719);
- SetPlayerInterior(playerid, 3);
- SetPlayerHealth(playerid, 99.0);
- SetPlayerArmour(playerid, 99.0);
- TogglePlayerControllable(playerid, 0);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- else if(PlayerInfo[playerid][pLider] == 11 || PlayerInfo[playerid][pClan] == 11)
- {
- SetPlayerPos(playerid, 681.4780,-473.5774,16.5363);
- SetPlayerInterior(playerid, 0);
- TogglePlayerControllable(playerid, 0);
- freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
- }
- else
- {
- PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
- new rand = random(sizeof(RandomSpawn));
- SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
- SetPlayerInterior(playerid, 0);
- }
- }
- else if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_KUCA)
- {
- if(PlayerInfo[playerid][pPosedovanjeKuce] != -1)
- {
- new i = PlayerInfo[playerid][pPosedovanjeKuce];
- SetPlayerInterior(playerid, KucaInfo[i][kInt]); SetPlayerVirtualWorld(playerid, KucaInfo[i][kVW]);
- SetPlayerPos(playerid, KucaInfo[i][kIzlazX], KucaInfo[i][kIzlazY], KucaInfo[i][kIzlazZ]);
- }
- else
- {
- PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
- new rand = random(sizeof(RandomSpawn));
- SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
- SetPlayerInterior(playerid, 0);
- SetPlayerFacingAngle(playerid, 270.00);
- SetCameraBehindPlayer(playerid);
- ApplyAnimation(playerid,"PED","WALK_GANG1",4.1,1,1,1,50,1);
- }
- }
- else if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_RENTKUCA)
- {
- if(PlayerInfo[playerid][pRent] != -1)
- {
- new i = PlayerInfo[playerid][pRent];
- SetPlayerInterior(playerid, KucaInfo[i][kInt]); SetPlayerVirtualWorld(playerid, KucaInfo[i][kVW]);
- SetPlayerPos(playerid, KucaInfo[i][kIzlazX], KucaInfo[i][kIzlazY], KucaInfo[i][kIzlazZ]);
- }
- else
- {
- PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
- new rand = random(sizeof(RandomSpawn));
- SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
- SetPlayerInterior(playerid, 0);
- SetPlayerFacingAngle(playerid, 270.00);
- SetCameraBehindPlayer(playerid);
- ApplyAnimation(playerid,"PED","WALK_GANG1",4.1,1,1,1,50,1);
- }
- }
- else if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_STAN)
- {
- if(PlayerInfo[playerid][pPosedovanjeStana] != -1)
- {
- new i = PlayerInfo[playerid][pPosedovanjeStana];
- SetPlayerInterior(playerid, StanInfo[i][sInt]); SetPlayerVirtualWorld(playerid, StanInfo[i][sVW]);
- SetPlayerPos(playerid, StanInfo[i][sIzlazX], StanInfo[i][sIzlazY], StanInfo[i][sIzlazZ]);
- }
- else
- {
- PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
- new rand = random(sizeof(RandomSpawn));
- SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
- SetPlayerInterior(playerid, 0);
- SetPlayerFacingAngle(playerid, 270.00);
- SetCameraBehindPlayer(playerid);
- ApplyAnimation(playerid,"PED","WALK_GANG1",4.1,1,1,1,50,1);
- }
- }
- else if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_VIKENDICA)
- {
- if(PlayerInfo[playerid][pPosedovanjeVikendice] != -1)
- {
- new i = PlayerInfo[playerid][pPosedovanjeVikendice];
- SetPlayerInterior(playerid, VikendiceInfo[i][viInt]); SetPlayerVirtualWorld(playerid, VikendiceInfo[i][viVW]);
- SetPlayerPos(playerid, VikendiceInfo[i][viIzlazX], VikendiceInfo[i][viIzlazY], VikendiceInfo[i][viIzlazZ]);
- }
- else
- {
- PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
- new rand = random(sizeof(RandomSpawn));
- SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
- SetPlayerInterior(playerid, 0);
- SetPlayerFacingAngle(playerid, 270.00);
- SetCameraBehindPlayer(playerid);
- ApplyAnimation(playerid,"PED","WALK_GANG1",4.1,1,1,1,50,1);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment