[Ajuda]Bug
#5

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid,playerid,reason);
    if(gTeam[killerid] == TEAM_ZOMBIE && gTeam[playerid] == TEAM_HUMAN)
    {
        GivePlayerMoney(killerid, 5000);
        SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
        GameTextForPlayer(killerid,"~w~+1 UP ~n~~r~+$5000",6000,4);
        SetPlayerColor(playerid,ADMIN_RED);
        gTeam[playerid] = TEAM_ZOMBIE;
        SendClientMessage(playerid,GREEN,"~Vocк foi Infectado~");
        SendClientMessageToAll(0xFF0000FF,"Um ser Humano foi Infectado");
        SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
        return 1;
    }
    else if(gTeam[killerid] == TEAM_HUMAN && gTeam[playerid] == TEAM_ZOMBIE)
    {
        GivePlayerMoney(killerid, 5000);
        SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
        GameTextForPlayer(killerid,"~w~+1 Up ~n~~r~+$5000",6000,4);
        SetPlayerColor(playerid, GREEN);
        gTeam[playerid] = TEAM_ZOMBIE; // playerid = quem morreu que no caso o zumbi vocк pos quem matou.
        SendClientMessage(playerid,ADMIN_RED,"Vocк foi morto");
        SendClientMessageToAll( 0x00FF00FF,"Um Zombie foi morto");
        SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
    }
    return 1;
}
Reply


Messages In This Thread
[Ajuda]Bug - by Mteck - 14.11.2011, 18:40
Re: [Ajuda]Bug - by ViniBorn - 14.11.2011, 18:42
Re: [Ajuda]Bug - by Mteck - 14.11.2011, 18:45
Re: [Ajuda]Bug - by ViniBorn - 14.11.2011, 18:52
Re: [Ajuda]Bug - by .Unnamed - 14.11.2011, 18:53
Re: [Ajuda]Bug - by Mteck - 14.11.2011, 18:53
Re: [Ajuda]Bug - by ViniBorn - 14.11.2011, 18:54
Re: [Ajuda]Bug - by Mteck - 14.11.2011, 19:53
Re: [Ajuda]Bug - by ViniBorn - 14.11.2011, 20:16

Forum Jump:


Users browsing this thread: 3 Guest(s)