Advanced OnPlayerConnect
#1

hey guys! i have the server rules as textdraws, can i show them on "OnPlayerConnect" and keep it for about 10 seconds then go to the Register/Login System ?

i tried this but didn't work, it sends the player to the register/login system directly with the server rules show on.
Reply
#2

Put the register/login dialog on a timer. So that it opens after 10 seconds. Which is the when the textdraws should be gone
Reply
#3

then it will send the player to RequestClass instead
Reply
#4

When the player connects set a timer for the player with 10 seconds, show the TextDraws when the player connects and hide them after 10 seconds.

While the rules are shown, make OnPlayerRequestClass return 0, I think ?
Reply
#5

I dont have time to code it for you but here are the steps to take which will hopefully help you.

1. Show the ZTextdraws with onplayerconnect
2. Place SetTimerEx under OnPlayerRequestClass for 10 secs
3. On the public of that timer, destroy the textdraws and load the login / registration

Hopefully this has helped you
Reply
#6

thanks all but not that what i want

Here we go: when you connect to any server the first message you get is this:


this message takes about 5 seconds till the 2nd message come and here it is:
when this message comes, it will take the player to the login/register system or request class.

what i want is to extend these 5 second and make it by 20 seconds before the 2nd message appears. I have server rules as textdraws, i want to show them in these 20 seconds then connect to the server.
Reply
#7

It's just a message which notifies user that they have successfully connected to the server..
I don't think that you can delay it.
Reply
#8

FIXED!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)