SA-MP Forums Archive
Force login - 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: Force login (/showthread.php?tid=71374)



Force login - Savill - 31.03.2009

Hey, I'm new to scripting and am wondering if it's possible to do like a force login/register on my server, any ideas?


Re: Force login - Pyrokid - 31.03.2009

Use this tutorial from the wiki to create an admin script. Then edit the script so when a player spawns, it will freeze them or something unless they log in.

https://sampwiki.blast.hk/wiki/Creating_an_Admin_Script


Re: Force login - Savill - 31.03.2009

Isn't there a way to add something into the script admin/registration script I have now? It's the seif one.


Re: Force login - Pyrokid - 31.03.2009

Oh alright if you already have one, just learn how the script checks if a player logged in. Then in OnPlayerSpawn, add an if statement.

Like this (example):
pawn Код:
if(logged[playerid] == 0) //not logged in{
//do something
}



Re: Force login - Savill - 31.03.2009

I don't really know how to find out but i'll try my best, thanks for the reply aswell.