[?] Creating variable, freezer when enter a DM zone, if checkpoint=mycp
#3

Quote:
Originally Posted by SpiderPork
1.) Make a new variable on top, outside of all functions; new InDm[MAX_PLAYERS];
Make sure to reset it (InDM[playerid] = 0 under OnPlayerDisconnect and OnPlayerDeath.

2.) Under the DM zone command, put this:
pawn Code:
InDM[playerid] = 1;
Also set a timer and use TogglePlayerControllable to freeze/unfreeze the player.

3.) You should use a checkpoint streamer, use this.
Thx, but i ask in Question 2.:
If somebody type /dm, that player freezes for 3 seconds, and automatically unfreezed 3 seconds later.

And:
Quote:
Originally Posted by AG Adam
Example: InDM[playerid]
And, changing it at every playerid, when enter a DM zone, or exit.
If a player InDM[playerid]=1, he can't use commands. I want this, too.
If a player enters a DM zone, freeze the player about 3 seconds, then unfreeze. I finded it at some hungarian forum, but that not works.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)