Textdraws on login - 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: Textdraws on login (
/showthread.php?tid=258507)
Textdraws on login -
Tachibana - 30.05.2011
Hey guys, I was playing around with Textdraws trying to make a textdraw saying "Welcome to *ServerName*" until the player logs in and the textdraw dissapears?
Or Do you guys have any tutorials maybe how to make textdraws?
Thank ya!
Re: Textdraws on login - ColdIce - 30.05.2011
pawn Код:
public OnPlayerConnect(playerid)
{
new string[255];
format(string, sizeof(string), "~r~Welcome to mah server bitches!");
GameTextForPlayer(playerid, string, 10000, 4);
SetPlayerColor(playerid, PlayerColors[playerid]);
IsInDM[playerid] = 0;
nojump2[playerid] = 0;
TextDrawShowForPlayer(playerid, Textdraw1);
ReceiveInfo[playerid] = true;
return 1;
}
You can change the timer also if you want.
Re: Textdraws on login -
Tachibana - 30.05.2011
thanks! but what is that isindm and nojump2. as wll is the string, 10000, 4 a timer?
Re: Textdraws on login - ColdIce - 30.05.2011
10000 is the timer, on my server it says welcome blablabla read /rules!
That was attempt to make players read the damn rules
Re: Textdraws on login -
Tachibana - 30.05.2011
So it is not needed and can be deleted?
Re: Textdraws on login - ColdIce - 30.05.2011
IsInDM[playerid] = 0;
nojump2[playerid] = 0;
u can delete that yes
Re: Textdraws on login -
Tachibana - 31.05.2011
Weird I add that below my script in OnplayerConnect and the pawno crashes?
Re: Textdraws on login - ColdIce - 31.05.2011
Odd. Works perfectly when I do it :/
Re: Textdraws on login -
Luis- - 31.05.2011
Why is your string size 255? use 128, it is so much better.
Re: Textdraws on login - ColdIce - 31.05.2011
Why do you think that?