Force login
#1

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

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

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

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
}
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)