Must login before spawning - 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: Must login before spawning (
/showthread.php?tid=186827)
Must login before spawning -
Garc1a - 30.10.2010
At the moment I have a admin script, and a account system. When you've registered and your on the server you can pick a skin and spawn without actually logging in, so people can go on admin accounts. Does anyone know how to make it so they have to login to pick a skin?
Re: Must login before spawning -
LarzI - 30.10.2010
If you log in via dialogs; show the dialog when the player connects (OnPlayerConnect)
Re: Must login before spawning -
WillyP - 30.10.2010
what do you use for isplayerlogged?
This forum requires that you wait 120 seconds between posts. Please try again in 64 seconds.
edit:
larzi beat me
Re: Must login before spawning -
Las Venturas CNR - 30.10.2010
You'd be best just making a dialog, if you need a tutorial...
http://forum.sa-mp.com/showthread.ph...ghlight=dialog
Re: Must login before spawning -
Garc1a - 31.10.2010
is there anyway to do it without a dialog?
Re: Must login before spawning -
Scenario - 31.10.2010
Quote:
Originally Posted by Garc1a
is there anyway to do it without a dialog?
|
You could send a client message telling the player(s) they need to log in. You could use "TogglePlayerSpectating" so it will basically 'pause' the class selection screen. If you have a command, for example /login, you could make it so when they execute the command, if the password matches what in their file/database table, they will be logged in. Just don't forget to do the opposite with "TogglePlayerSpectating".