09.05.2011, 06:53
(
Последний раз редактировалось Calgon; 09.05.2011 в 07:26.
)
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:
Add this outside of any other code:
You might want to add some kind of gametext though.
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);
pawn Код:
public _TogglePlayerControllable(playerid, control) {
TogglePlayerControllable(playerid, control);
return 1;
}