Disabling FS While In MiniGame +REP
#3

I fixed that, But i want to disable filterscript commands. Here i can help.

Add this somewhere at the very top of your script.
Quote:

dm[MAX_PLAYERS];

Then, Add this to the teleport command that takes you to your minigame.
Quote:

dm[playerid] = 1;

Next, Add this to every command you want disabled.
Quote:

if(dm[playerid]== 1) return SendClientMessage(playerid, 0xFF0000C8, "You CANNOT Use ThisCommand!,Type /leavedm!");

Then you wanna make a command like /leavedm that removes you from the minigame.
Then under that command add.
Quote:

dm[playerid] = 0;

Your done.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)