SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Closed Thread
 
Thread Tools Display Modes
Old 22/05/2014, 08:27 PM   #1
AnonScripter
Gangsta
 
Join Date: Sep 2013
Posts: 591
Reputation: 6
Default OnPlayerConnect!

i made a thread before about this but no one helped me or maybe no one got my point.

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


this message takes about 5 seconds till this message come:
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.
AnonScripter is offline  
Old 22/05/2014, 08:31 PM   #2
Mriss
Gangsta
 
Join Date: Jan 2014
Location: Notepad ++
Posts: 508
Reputation: 43
Default Re: OnPlayerConnect!

Im not sure if you can do that...
Mriss is offline  
Old 22/05/2014, 08:35 PM   #3
AnonScripter
Gangsta
 
Join Date: Sep 2013
Posts: 591
Reputation: 6
Default Re: OnPlayerConnect!

Quote:
Originally Posted by Mriss View Post
Im not sure if you can do that...
I can, i saw some servers do this, and i hope to know how they do this.
AnonScripter is offline  
Old 22/05/2014, 08:39 PM   #4
XK
Huge Clucker
 
XK's Avatar
 
Join Date: Mar 2014
Location: A Rare Place
Posts: 242
Reputation: 30
Default Re: OnPlayerConnect!

well,that connecting message,and connected to server[name] is not in your gamemode or...it's in samp,well,what the other servers do is when player connect,they set a timer for 20 seconds,and in that timer when it's over it shows the dialog for logging in and...like when you connect,set a timer for the player for 20 seconds and then show him the login dialog/register dialog,thats all,easy
__________________
By XK:
And are we meant to guess your Request?

XK is offline  
Old 22/05/2014, 08:52 PM   #5
AnonScripter
Gangsta
 
Join Date: Sep 2013
Posts: 591
Reputation: 6
Default Re: OnPlayerConnect!

Quote:
Originally Posted by XK View Post
well,that connecting message,and connected to server[name] is not in your gamemode or...it's in samp,well,what the other servers do is when player connect,they set a timer for 20 seconds,and in that timer when it's over it shows the dialog for logging in and...like when you connect,set a timer for the player for 20 seconds and then show him the login dialog/register dialog,thats all,easy
Really easy? -.-
The second message will come even you dont have any scripts of register/login system, it will appear even you dont have any thing scripted on "OnPlayerConnect"
when the 2nd message appear, it will send the player to Request Class. i want the 2nd message be late to appear, because i want to script something between the 1st and the 2nd message.
AnonScripter is offline  
Old 22/05/2014, 08:56 PM   #6
XK
Huge Clucker
 
XK's Avatar
 
Join Date: Mar 2014
Location: A Rare Place
Posts: 242
Reputation: 30
Default Re: OnPlayerConnect!

just try what i have told you,Under OnPlayerConnect,set a timer,and in that timer when it's over show the login/register thingy,give it a try,it will work,well,and it doesnt send the player to class selection after the 2nd message,you can even make it without that,and at that time force him to go to the class selection
__________________
By XK:
And are we meant to guess your Request?

XK is offline  
Old 22/05/2014, 09:07 PM   #7
AnonScripter
Gangsta
 
Join Date: Sep 2013
Posts: 591
Reputation: 6
Default Re: OnPlayerConnect!

Quote:
Originally Posted by XK View Post
just try what i have told you,Under OnPlayerConnect,set a timer,and in that timer when it's over show the login/register thingy,give it a try,it will work,well,and it doesnt send the player to class selection after the 2nd message,you can even make it without that,and at that time force him to go to the class selection
well i tried it and did not work
i knew that it will not work, maybe you don't know what i'm talking about or u didn't get my point.

Here's what happened: the 2nd message appeared after about 2 or 3 seconds from the 1st message then it took me to the class selections, and after 20 seconds the login/register dialog appeared.
AnonScripter is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OnPlayerConnect help TazmaNiax Scripting Help 10 16/05/2014 04:36 AM
[Ajuda] OnPlayerConnect [KoS]Izaac PortuguÍs/Portuguese 3 12/03/2013 10:55 PM
[HELP] OnPlayerConnect! Oscii Scripting Help 5 29/05/2012 06:22 AM
OnPlayerConnect [HELP] Sting. Scripting Help 4 23/01/2012 05:07 PM
need help with onplayerconnect... niels44 Scripting Help 5 17/12/2011 09:40 AM


All times are GMT. The time now is 10:42 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.