Join/Leave Messages in TextDraw [HELP]
#1

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.
Reply
#2

I would like to know this too.
Reply
#3

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
Reply
#4

Ok thanks.
Reply
#5

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

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

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

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....
Reply
#8

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

Use OnPlayerDisconnect() and OnPlayerConnect().
Reply
#9

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
Reply
#10

You must create a string, mate.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)