Question about TextDraw
#1

Hello I need help, I am creating a TextDraw for when a player enters or dies to the server all is well with TextDraw but when you see the text also appears the skin of the player.

їanyone know how I can remove the skin and put only the text for a moment?

photo
Reply
#2

You mean you want to remove player from the camera?
Reply
#3

if for some moments and after 5 seconds have passed the player appears in the position that came out when I enter the server or died
Reply
#4

їNo one knows how to do this...?
Reply
#5

You can set somewhere camera. SetPlayerCameraPos, SetPlayerCameraLookAt - maybe this should help you?
Reply
#6

Yea.. In OnPlayerDeath make the camera look to where you want (Wall, Sea, Air, etc) and make a timer on PlayerRespawn..
Reply
#7

if it could work but as knowing codes for the camera to know where is the player and to reposition the camera not to see the skin
Reply
#8

I don't know what you mean exactly.. you mean set camera again on player? if yes.. just use in timer:
Код:
SetCameraBehindPlayer(playerid);
Reply
#9

Let me explain how I can put the text without the skin...


Here is my function but it does not work as I want
pawn Код:
public OnPlayerSpawn(playerid)
{
   
    TextDrawShowForPlayer(playerid, Test);
    new Float:x,Float:y,Float:z;
    SetPlayerCameraPos(playerid,x, y, z);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    SetTimerEx("Test", 10000, 0, "d", playerid);
    TogglePlayerControllable(playerid, 0);


    return 1;
}
forward Test(playerid);
public Test(playerid)
{
        TogglePlayerControllable(playerid, 1);
        SetCameraBehindPlayer(playerid);
        TextDrawHideForPlayer(playerid, Test);
        SetTimerEx("Test", 5000, 0, "d", playerid);
    return 1;
}
Reply
#10

nobody knows?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)