05.03.2015, 00:24
e como eu adapto isso no meu dialog de desativar textdraws?
pawn Код:
if (dialogid == MenuD)
{
if(response)
{
if(listitem == 0)
{
if(vVeloci[playerid] == false)
{
vVeloci[playerid] = true;
PlayerTextDrawShow(playerid, Veloci[playerid]);
SendClientMessage(playerid, VERDE, "< INFO > Velocimetro ativado!");
}else{
vVeloci[playerid] = false;
PlayerTextDrawHide(playerid, Veloci[playerid]);
SendClientMessage(playerid, VERDE, "< INFO > Velocimetro desativado!");
}
}
if(listitem == 1)
{
if(contador[playerid] == false)
{
contador[playerid] = true;
TextDrawShowForPlayer(playerid,Score[playerid]);
SendClientMessage(playerid, VERDE, "< INFO > Score ativado!");
}else{
contador[playerid] = false;
TextDrawHideForPlayer(playerid,Score[playerid]);
SendClientMessage(playerid, VERDE, "< INFO > Score desativado!");
}
}
if(listitem == 2)
{
if(drift[playerid] == false)
{
drift[playerid] = true;
TextDrawShowForPlayer(playerid,Chet[playerid]);
SendClientMessage(playerid, VERDE, "< INFO > Drift ativado!");
return true;
}else{
drift[playerid] = false;
TextDrawHideForPlayer(playerid, Chet[playerid]);
SendClientMessage(playerid, VERDE, "< INFO > Drift desativado!");
return true;
}
}
}
}