How can i locked key in OnPlayerRequestClass? - 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 can i locked key in OnPlayerRequestClass? (
/showthread.php?tid=72881)
How can i locked key in OnPlayerRequestClass? -
Nmancer - 11.04.2009
TogglePlayerControllable doesnt work.How can i do this?
Re: How can i locked key in OnPlayerRequestClass? -
Weirdosport - 11.04.2009
Well, it does work.. If you're trying to stop people spawning try:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
return 0;
}
That will stop anyone spawning. If you want to stop certain people spawning, try something like:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(PlayerSpawn == 1) return 1;
else return 0;
}
That will only allow the player to spawn if PlayerSpawn == 1