16.08.2013, 23:52
Код:
public OnPlayerDeath(playerid, killerid, reason) { new Float:px,Float:py,Float:pz; PlayerInactivity[playerid] = 0; //DropWeapons(playerid); //DropVida(playerid); gPlayerSpawned[playerid] = 0; PlayerInfo[playerid][pLocal] = 255; GetPlayerPos(playerid, px, py, pz); spawnado[playerid] = 0; //if(killerid == INVALID_PLAYER_ID) //{ // SendDeathMessage(INVALID_PLAYER_ID,playerid,reason); //} if (gPlayerTerminal[playerid] != 0) { BusrouteEnd(playerid); } if(PlayerPaintballing[killerid] == 0) { SetPlayerCriminal(killerid, 255, "Assasinato"); PlayerInfo[killerid][pKills] += 1; } if(TendoGuerra == 1 && IsPlayerInTerritorio(playerid) && IsPlayerInTerritorio(killerid)) { if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3) { if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6) { Territorio[talmortos] += 1; } if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) { Territorio[almortos] += 1; } } if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6) { if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3) { Territorio[exemortos] += 1; } if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) { Territorio[almortos] += 1; } } if(PlayerInfo[killerid][pMembro] == 15 || PlayerInfo[killerid][pLider] == 15) { if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3) { Territorio[exemortos] += 1; } if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6) { Territorio[talmortos] += 1; } } }