Textdraws on login
#1

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

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

thanks! but what is that isindm and nojump2. as wll is the string, 10000, 4 a timer?
Reply
#4

10000 is the timer, on my server it says welcome blablabla read /rules!

That was attempt to make players read the damn rules
Reply
#5

So it is not needed and can be deleted?
Reply
#6

IsInDM[playerid] = 0;

nojump2[playerid] = 0;

u can delete that yes
Reply
#7

Weird I add that below my script in OnplayerConnect and the pawno crashes?
Reply
#8

Odd. Works perfectly when I do it :/
Reply
#9

Why is your string size 255? use 128, it is so much better.
Reply
#10

Why do you think that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)