Must login before spawning
#1

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

If you log in via dialogs; show the dialog when the player connects (OnPlayerConnect)
Reply
#3

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

You'd be best just making a dialog, if you need a tutorial...

http://forum.sa-mp.com/showthread.ph...ghlight=dialog
Reply
#5

is there anyway to do it without a dialog?
Reply
#6

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".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)