18.09.2012, 21:40
salve salve galerinha do fуrum samp, bom hoje vim pedir ajuda a vocкs, fiz um /tv bem completo mais so que infelizmente ele nгo pega, tipo o meu texdraw tem um fundo transparente e tem todas as informaзхes do player, mais so aparece o fundo transparente, segue abaixo meu /tv
bom esse e onde fica tudo, agora vou passar o resto
pawn Код:
public Spectator()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Spectate[i] < 253 && Spectate[i] != 255)
{
SetPlayerToTeamColor(i);
//TogglePlayerControllable(i, 0);
new targetid = Spectate[i];
if(IsPlayerConnected(targetid))
{
TogglePlayerSpectating(i, 1);
if(PlayerInfo[i][pAdmin] >= 1)
{
new Float:Speedo_HP;
new Float:health;
new Float:Armow;
new gunID = GetPlayerWeapon(targetid);
new gunAmmo = GetPlayerAmmo(targetid);
new Pingg = GetPlayerPing(targetid);
new gunname[100];
GetVehicleHealth(targetid, Speedo_HP);
GetWeaponName(gunID, gunname, sizeof(gunname));
GetPlayerHealth(targetid, health);
GetPlayerArmour(targetid, Armow);
format(gstring,sizeof(gstring),"~b~Nome: ~w~%s~n~~b~Arma: ~w~%s~n~~b~Dinheiro: ~w~%d~n~~b~Colete: ~w~%.1f ~b~Vida: ~w~%.1f~n~~b~Ping: ~w~%d ~b~Municao: ~w~%d~n~~b~Veiculo: ~w~%s~b~~n~Velocidade: ~w~%d~n~~b~Lataria: ~w~%0.0f%%",PlayerName(targetid),gunname,GetPlayerMoney(targetid),Armow,health,Pingg,gunAmmo,vehName[GetVehicleModel(targetid)-400], GetPlayerSpeed(targetid, true), Speedo_HP/10);
TextDrawShowForPlayer(i, ModTV[i]);
}
if(IsPlayerInAnyVehicle(targetid))
{
new carid = GetPlayerVehicleID(targetid);
PlayerSpectateVehicle(i, carid);
}
else
{
PlayerSpectatePlayer(i, targetid);
}
if(GetPlayerInterior(targetid) == 0)
{
SetPlayerInterior(i,0);
}
else if(GetPlayerInterior(targetid) > 0)
{
SetPlayerInterior(i,GetPlayerInterior(targetid));
}
}//Targetid connected
}
}
}
pawn Код:
ModTV[i] = TextDrawCreate(498.000000, 347.000000,"_");
TextDrawUseBox(ModTV[i],1);
TextDrawBoxColor(ModTV[i],0x00000065);
TextDrawTextSize(ModTV[i],633.000000, -19.000000);
TextDrawAlignment(ModTV[i],0);
TextDrawBackgroundColor(ModTV[i],0x000000FF);
TextDrawFont(ModTV[i],2);
TextDrawLetterSize(ModTV[i],0.270000, 1.000000);
TextDrawColor(ModTV[i],0xFFFFFFFF);
TextDrawSetOutline(ModTV[i],1);
TextDrawSetProportional(ModTV[i],1);
TextDrawSetShadow(ModTV[i],1);