[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
#2

Alguem ajuda ae...to precisando com urgencia!!!
Reply
#3

Vб atй o OnPlayerEnterVehicle ou OnPlayerStateChange e poste.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)