[HELP]Textdraw at startup at specific area in map
#1

Hello, i've created a Textdraw so when you join the server you see the rules, and at onspawnselection it dissapears again. But now i want something like when you join the server you see the rules, but not at the vinewood area, but somewhere else like on mount chilliad, partyserver has it to, but i can't figure out how to do it, thanks.
Reply
#2

anyone?
Reply
#3

Try this:

At the top:
pawn Код:
new bool:JustConnectedorSpawned[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
public OnPlayerConnect(playerid)
{
    JustConnectedorSpawned [playerid] = true;
    return 1;
}
OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(Player[playerid][JustConnectedorSpawned])
    {
        SetTimerEx("AutoTextdrawHider", 10000, false, "d", playerid);
        TextDrawShowForPlayer(playerid, RULESTEXTDRAW); // Change RULESTEXTDRAW to your correct Textdraw
        Player[playerid][JustConnectedorSpawned] = false;
    }
    return 1;
}

Somwhere at the bottom of your script (or anywhere outside of commands, callbacks etc.
pawn Код:
forward AutoTextdrawHider();
public AutoTextdrawHider(playerid)
{
    TextDrawHideForPlayer(playerid, RULESTEXTDRAW); // Change RULESTEXTDRAW to your correct Textdraw
}
Untested.
Reply
#4

Quote:
Originally Posted by [B2K
Hustler ]
Try this:

At the top:
pawn Код:
new bool:JustConnectedorSpawned[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
public OnPlayerConnect(playerid)
{
    JustConnectedorSpawned [playerid] = true;
    return 1;
}
OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(Player[playerid][JustConnectedorSpawned])
    {
        SetTimerEx("AutoTextdrawHider", 10000, false, "d", playerid);
        TextDrawShowForPlayer(playerid, RULESTEXTDRAW); // Change RULESTEXTDRAW to your correct Textdraw
        Player[playerid][JustConnectedorSpawned] = false;
    }
    return 1;
}

Somwhere at the bottom of your script (or anywhere outside of commands, callbacks etc.
pawn Код:
forward AutoTextdrawHider();
public AutoTextdrawHider(playerid)
{
    TextDrawHideForPlayer(playerid, RULESTEXTDRAW); // Change RULESTEXTDRAW to your correct Textdraw
}
Untested.
that will result what he arleady got!! he wants setplayercamerapos
Reply
#5

^ Exactly, like in partyserver.
Reply
#6

Anyone please
Reply
#7

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)