Disabaling Spawn Before Registering - 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: Disabaling Spawn Before Registering (
/showthread.php?tid=92652)
Disabaling Spawn Before Registering -
will_92 - 21.08.2009
How would i disable the player on spawning before he registers?, like what command or function can i use for that ?
Re: Disabaling Spawn Before Registering -
pliva_sb - 21.08.2009
Quote:
Originally Posted by will_92
How would i disable the player on spawning before he registers?, like what command or function can i use for that ?
|
You can use Kick(playerid); like
public OnPlayerSpawn(playerid)
Код:
if(gPlayerLogged[playerid] == 0)
{
Kick(playerid);
}
Re: Disabaling Spawn Before Registering -
will_92 - 21.08.2009
no , i don't want to kick i want to disable player from entering the game if he doesn't register or login
Re: Disabaling Spawn Before Registering -
CracK - 21.08.2009
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(!isLogged[playerid]) return 0;
return 1;
}
Re: Disabaling Spawn Before Registering -
pliva_sb - 21.08.2009
Quote:
Originally Posted by CrαcK
pawn Код:
public OnPlayerRequestSpawn(playerid) { if(!isLogged[playerid]) return 0; return 1; }
|
you are faster
Re: Disabaling Spawn Before Registering -
will_92 - 21.08.2009
It don't work ?!?!
Re: Disabaling Spawn Before Registering -
pagie1111 - 21.08.2009
okay make this at the top of script
pawn Код:
new Registed[MAX_PLAYERS];
then in your OnPlayerConnect put
then with your /register and/or /login command
place
then OnPlayerRequestSpawn
pawn Код:
if(Registed[playerid] == 0)
{
SendClientMessage(playerid,RED,"ERROR: Please register/login first!");
return 0;
}
Re: Disabaling Spawn Before Registering -
will_92 - 21.08.2009
k , that's not even close
Re: Disabaling Spawn Before Registering -
FUNExtreme - 21.08.2009
Do you have an admin script. If yes, show it. So that we actually KNOW how it works so that we can create a WORKING fix
Re: Disabaling Spawn Before Registering -
Mr_Finnigan - 21.08.2009
gAdmin has it built in you just have to change a value in a script file from 0 to 1 somewhere.