how to freeze
#1

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

https://sampwiki.blast.hk/wiki/TogglePlayerControllable
Reply
#3

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

OnPlayerConnect
TogglePlayerControllable(playerid,0);


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


________
Website host
Reply
#5

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.
Reply
#6

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)