[Ajuda] BUG DESATIVAR CONTADOR DRIFT!
#1

meu bug e o seguinte quando eu desativo para mim o contador ele desativa blz..mais quando eu ativo o contador e alguem ta com ele desativado tbm eu ativo para mim e ativa para quem desativou tbm!!! oque sera nessa bosta de codigo que n consigo resolver...desde ontem ja!!!

pawn Код:
CMD:desativarcont(playerid)
{
    if(GetPVarInt(playerid, "contador") == 0) {
    PlayerTextDrawHide(playerid,ServerTextDrawOne[playerid]);
    PlayerTextDrawHide(playerid,ServerTextDrawTwo[playerid]);
    PlayerTextDrawHide(playerid,ServerTextDrawThree[playerid]);
    PlayerTextDrawHide(playerid,ServerTextDrawFour[playerid]);
    PlayerTextDrawHide(playerid,ServerTextDrawFive[playerid]);
    KillTimer(PlayerTimerOne[playerid]);

    KillTimer(ServerTimerOne);
    KillTimer(ServerTimerTwo);
        SetPVarInt(playerid, "contador", 1);
        Msg(playerid, -1, "Vocк desativou as text draw do contador, use (/desativarcont) novamente para ativalas!");
    }
    else if(GetPVarInt(playerid, "contador") == 1) {
        PlayerTextDrawShow(playerid,ServerTextDrawOne[playerid]);
        PlayerTextDrawShow(playerid,ServerTextDrawTwo[playerid]);
        PlayerTextDrawShow(playerid,ServerTextDrawFour[playerid]);
        ServerTimerOne = SetTimerEx("PlayerUpdate",500,true, "d", playerid);
        ServerTimerTwo = SetTimerEx("PlayerDrift",200,true, "d", playerid);
        SetPVarInt(playerid, "contador", 0);
        Msg(playerid, -1, "Vocк ativou as text draw do contador, use (/desativarcont) novamente para deativalas");
    }
    return 1;
}
Reply


Messages In This Thread
BUG DESATIVAR CONTADOR DRIFT! - by best95 - 13.09.2014, 16:30
Re: BUG DESATIVAR CONTADOR DRIFT! - by best95 - 13.09.2014, 17:10
Re: BUG DESATIVAR CONTADOR DRIFT! - by zSuYaNw - 13.09.2014, 21:17

Forum Jump:


Users browsing this thread: 1 Guest(s)