[Ajuda] Bug
#1

eu tou com um problema, quando chamo um gametext, ele fica bugado e n sai

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid == playerid) return SendClientMessage(killerid,COLOR_ERRO,"[ERRO:] {ffffff}Aconteceu algum erro, serб kickado para prevenir outros erros."),SetTimerEx("KickPlayer",200,false,"d",playerid);
    if(PlayerInfo[playerid][Jail] > 0) return SetPlayerPos(playerid,666.79999,-2405.8999,0);
    if(!IsPlayerConnected(killerid)) return PlayerInfo[playerid][Deaths]++,GivePlayerMoney(playerid,100);
    if(GetPlayerTeam(killerid) == GetPlayerTeam(playerid))
    {
        SetPlayerHealth(killerid,0);
        GivePlayerMoney(playerid,100);
        SendClientMessage(killerid,COLOR_AVSH,"[Dica:] {ffffff}Nгo mates a tua equipa!");
    }
    else
    {
        PlayerInfo[killerid][killstime]++;
        PlayerInfo[playerid][killstime] = 0;
        SendDeathMessage(killerid,playerid,reason);
        SetPlayerScore(killerid,GetPlayerScore(killerid)+20);
        GivePlayerMoney(killerid,150);
        PlayerInfo[killerid][Kills]++;
        PlayerInfo[playerid][Deaths]++;
        GivePlayerMoney(playerid,100);
        new data[50],string[500],Year, Month, Day,Hour, Minute, Second;
        getdate(Year, Month, Day);
        gettime(Hour, Minute, Second);
        format(data,sizeof(data),"%02d/%02d/%d %02d:%02d",Day,Month,Year,Hour,Minute);
        format(string,sizeof(string),"[Deaths:][%s] %s  matou %s com a arma %d ",data,GetPlayerNameEx(killerid),GetPlayerNameEx(playerid),reason);
        addlog("logs/conections",string);
        if(PlayerInfo[killerid][killstime] == 2)
        {
            GameTextForPlayer(killerid, "~r~Double Kill", 2000, 2);
            SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
        }
        else if(PlayerInfo[killerid][killstime] == 3)
        {
            GameTextForPlayer(killerid, "~r~Triple Kill", 2000, 2);
            SetPlayerScore(killerid,GetPlayerScore(killerid)+2);
        }
        else if(PlayerInfo[killerid][killstime] == 4)
        {
            GameTextForPlayer(killerid, "~r~Quadra Kill", 2000, 2);
            SetPlayerScore(killerid,GetPlayerScore(killerid)+4);
        }
        else if(PlayerInfo[killerid][killstime] == 5)
        {
            GameTextForPlayer(killerid, "~r~Penta Kill", 2000, 2);
            SetPlayerScore(killerid,GetPlayerScore(killerid)+5);
        }
        else if(PlayerInfo[killerid][killstime] > 5)
        {
            GameTextForPlayer(killerid, "~r~Monster Kill", 2000, 2);
            SetPlayerScore(killerid,GetPlayerScore(killerid)+PlayerInfo[killerid][killstime]);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Bug - by iTzDemon - 29.07.2014, 19:55
Re: Bug - by ViniBorn - 29.07.2014, 19:59
Re: Bug - by iTzDemon - 29.07.2014, 20:05
Re: Bug - by ViniBorn - 29.07.2014, 20:12
Re: Bug - by iTzDemon - 29.07.2014, 20:50

Forum Jump:


Users browsing this thread: 1 Guest(s)