SA-MP Forums Archive
Join/Leave Messages in TextDraw [HELP] - 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: Join/Leave Messages in TextDraw [HELP] (/showthread.php?tid=97181)



Join/Leave Messages in TextDraw [HELP] - Headyheadster - 13.09.2009

Hello everybody who reading this topic!

My question is how to make join/leve messages in TextDraw form...
I was searching on forum , i found some , but it gives me errors ... because my gamemode is made in another form...

Thats how it looks in my gamemode.

Connect message!
Quote:

format(string, sizeof(string), "* %s joined to the server. [Id:%i]",name, playerid);
SendClientMessageToAll(COLOR_BADSYSTEM, string);

Disconnect message!

Quote:

switch (reason) {
case 0: {
format(string, sizeof(string), "* %s left the server. (Timeout) [Id:%i]",name, playerid);
SendClientMessageToAll(COLOR_BADSYSTEM, string);
}
case 1: {
format(string, sizeof(string), "* %s left the server. (Leaving) [Id:%i]",name, playerid);
SendClientMessageToAll(COLOR_BADSYSTEM, string);
}
case 2: {
format(string, sizeof(string), "* %s left the server. (Kick/Ban) [Id:%i]",name, playerid);
SendClientMessageToAll(COLOR_BADSYSTEM, string);
}
}

Help me pls with that.... I just wanna to not spam main-chat Thanks alot guys.


Re: Join/Leave Messages in TextDraw [HELP] - uhumaham - 13.09.2009

I would like to know this too.


Re: Join/Leave Messages in TextDraw [HELP] - 0ne - 13.09.2009

Use zamaroths text draw editor 0.6 make a textdraw where you like,style you like and do it like:

%s has joined the game. or what ever, then set its string when someone joins but don't forget to show it and then put a timer or something hide it, i don't suggest you use it because it increases the chances of crashing server


Re: Join/Leave Messages in TextDraw [HELP] - Headyheadster - 13.09.2009

Ok thanks.


Re: Join/Leave Messages in TextDraw [HELP] - Headyheadster - 16.09.2009

Anyway didn't find any solutions for me....

Please old scripters , can u give example for my join/leave mssages in textdraw ...


Re: Join/Leave Messages in TextDraw [HELP] - Calgon - 16.09.2009

Use the textdraw editor or learn how to create textdraws from the wiki, it's not hard.


Re: Join/Leave Messages in TextDraw [HELP] - Headyheadster - 16.09.2009

Quote:
Originally Posted by Calgon
Use the textdraw editor or learn how to create textdraws from the wiki, it's not hard.
Ok i know how to make textdraws , but how to display it when player connects or disconnects in ma case?!! that's the question....


Re: Join/Leave Messages in TextDraw [HELP] - Calgon - 16.09.2009

https://sampwiki.blast.hk/wiki/TextDrawShowForAll

Use OnPlayerDisconnect() and OnPlayerConnect().


Re: Join/Leave Messages in TextDraw [HELP] - saiberfun - 16.09.2009

Quote:
Originally Posted by Headyheadster
Quote:
Originally Posted by Calgon
Use the textdraw editor or learn how to create textdraws from the wiki, it's not hard.
Ok i know how to make textdraws , but how to display it when player connects or disconnects in ma case?!! that's the question....
show it for all players onPlayerConnect
make a timer onplayerconnect
and on the timer u hide it again


Re: Join/Leave Messages in TextDraw [HELP] - eXchainZ-FoReVeR - 16.09.2009

You must create a string, mate.