[Pedido] Бrea q quando matasse с pegasse procura
#5

Aki estб a OnPlayerDeath.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   
    if(emguerra[playerid] == 1)
    {
        format(gstring, 128, "%s saiu da zona de guerra!", PlayerName(playerid));
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        emguerra[playerid] = 0;
    }
    //new dmessage[128];
    //new deathreason[20];
    SendDeathMessage(killerid, playerid, reason);
    new Float:px,Float:py,Float:pz;
    PlayerInactivity[playerid] = 0;
    DropWeapons(playerid);
    DropVida(playerid);
    //DropGrana(playerid);
    gPlayerSpawned[playerid] = 0;
    PlayerInfo[playerid][pLocal] = 255;
    GetPlayerPos(playerid, px, py, pz);
    spawnado[playerid] = 0;
    antifakekill[playerid] ++;
    SetTimerEx("antifakekill2", 1000,false,"i",playerid);
    if (gPlayerTerminal[playerid] != 0)
    {
        BusrouteEnd(playerid);
    }
    if(PlayerPaintballing[killerid] == 0)
    {
        SetPlayerCriminal(killerid, 255, "Assasinato");
        WantedPoints[playerid]+=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;
            }
        }
    }
Reply


Messages In This Thread
Бrea q quando matasse с pegasse procura - by Gutierrez_zikaloko - 11.04.2013, 01:52
Re: Бrea q quando matasse с pegasse procura - by Delete_ - 11.04.2013, 01:56
Re: Бrea q quando matasse с pegasse procura - by WotusPower - 11.04.2013, 01:57
Re: Бrea q quando matasse с pegasse procura - by Gutierrez_zikaloko - 11.04.2013, 02:03
Re: Бrea q quando matasse с pegasse procura - by Gutierrez_zikaloko - 11.04.2013, 02:06

Forum Jump:


Users browsing this thread: 1 Guest(s)