SA-MP Forums Archive
Help - 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)
+--- Thread: Help (/showthread.php?tid=579025)



Help - STONEGOLD - 23.06.2015

Well, How to freeze player while player's register/loggin place. Something like toggle?

Also, How to hide this if player didn't login yet. As you can see in the pic. How to hide this textdraw if player didn't login yet.




Re: Help - Prokill911 - 23.06.2015

Uh, Simply don't call it until they've reached the logged in part of your script.
An then call the textdraw to show


Re: Help - Roberto80 - 23.06.2015

TogglePlayerControllable(playerid,0);
0 means he will be frozen,you must add it under OnPlayerConnect.
don't miss to unfroze him,TogglePlayerControllable(playerid,1); under OnPlayerSpawn.
try this,also idk about textdraw


Re: Help - Inn0cent - 23.06.2015

TogglePlayerControllable(playerid,0); //Freeze
TogglePlayerControllable(playerid,1); //UnFreeze


Re: Help - STONEGOLD - 23.06.2015

Well, And how to hide textdraw until they loggin/register.


Re: Help - Inn0cent - 23.06.2015

Maybe just spawn the player using, SpawnPlayer(playerid);
on player connect.


Re: Help - STONEGOLD - 23.06.2015

Nah, I want after register player should choose a skin. What if he wants to be cop and i spawn it as a robber. It would be unfair. I want let them choose what they want. So. I would be your thankful if give me code how can i hide this textdraw until player done register/login