Freezing a player on /enter.
#4

Yeah, I agree the include is poorly scripted, maybe I can actually just help you.

What you'll need to do is temporarily freeze the player then unfreeze them with a timer - in your code I see nothing of that nature yet.

So here's what you should do:

Add this to your /enter code:
pawn Код:
TogglePlayerControllable(playerid, false);
// You can't use forwarded natives in SetTimer(Ex), so we'll have to create a public to wrap the function
SetTimerEx("_TogglePlayerControllable", 3000, false, "d", playerid);
Add this outside of any other code:
pawn Код:
public _TogglePlayerControllable(playerid, control) {
   TogglePlayerControllable(playerid, control);
   return 1;
}
You might want to add some kind of gametext though.
Reply


Messages In This Thread
Freezing a player on /enter. - by GangsTa_ - 09.05.2011, 06:21
Re: Freezing a player on /enter. - by Calgon - 09.05.2011, 06:25
Re: Freezing a player on /enter. - by GangsTa_ - 09.05.2011, 06:33
Re: Freezing a player on /enter. - by Calgon - 09.05.2011, 06:53
Re: Freezing a player on /enter. - by GangsTa_ - 09.05.2011, 07:06

Forum Jump:


Users browsing this thread: 2 Guest(s)