SA-MP Forums Archive
how to freeze - 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: how to freeze (/showthread.php?tid=131087)



how to freeze - 02manchestera - 01.03.2010

I want to freeze players until they type /register or /login how would i do this


Re: how to freeze - Correlli - 01.03.2010

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


Re: how to freeze - 02manchestera - 01.03.2010

So i could put in onplayerconnect to freeze them and in a cmd /register as a unfreeze


Re: how to freeze - aircombat - 01.03.2010

OnPlayerConnect
TogglePlayerControllable(playerid,0);


end of /register command
TogglePlayerControllable(playerid,1);


________
Website host


Re: how to freeze - Correlli - 01.03.2010

Quote:
Originally Posted by 02manchestera
So i could put in onplayerconnect to freeze them and in a cmd /register as a unfreeze
Well, when they connect they're putted on the class selection so they can't move anyway.


Re: how to freeze - 02manchestera - 01.03.2010

Yes but they can spawn then they car move i want it so they cant spawn until the register or login


Re: how to freeze - MaykoX - 01.03.2010

Quote:
Originally Posted by 02manchestera
I want to freeze players until they type /register or /login how would i do this
Just put TogglePlayerControllable(playerid,0);
OnPlayerSpawn and TogglePlayerControllable(playerid,1); at /login and /register what's so hard xD



Re: how to freeze - Correlli - 01.03.2010

Quote:
Originally Posted by 02manchestera
Yes but they can spawn then they car move i want it so they cant spawn until the register or login
Well, you can check if player is logged at OnPlayerRequestSpawn and if he is you can let him spawn, but if he isn't then don't allow him.