[HELP]Textdraw at startup at specific area in map - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Textdraw at startup at specific area in map (
/showthread.php?tid=89345)
[HELP]Textdraw at startup at specific area in map -
urkiefly101 - 01.08.2009
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.
Re: [HELP]Textdraw at startup at specific area in map -
urkiefly101 - 01.08.2009
anyone?
Re: [HELP]Textdraw at startup at specific area in map -
member - 01.08.2009
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.
Re: [HELP]Textdraw at startup at specific area in map -
Serediucr - 01.08.2009
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
Re: [HELP]Textdraw at startup at specific area in map -
urkiefly101 - 01.08.2009
^ Exactly, like in partyserver.
Re: [HELP]Textdraw at startup at specific area in map -
urkiefly101 - 02.08.2009
Anyone please
Re: [HELP]Textdraw at startup at specific area in map -
urkiefly101 - 06.08.2009
bump