25.01.2010, 12:40
Sorry for double post, but i got annother solution:
You can also create new variable called
before main
And when player enters minigame, you would set InMinigame to 1. (InMinigame[playerid] = 1)
When player leaves the minigame, you would set it to 0. InMinigame[playerid] = 0)
And
You can also create new variable called
pawn Код:
InMinigame[MAX_PLAYERS];
And when player enters minigame, you would set InMinigame to 1. (InMinigame[playerid] = 1)
When player leaves the minigame, you would set it to 0. InMinigame[playerid] = 0)
And
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(InMinigame[playerid] == 1) return 0 SendClientMessage(playerid, color, "You can't use commands in minigame");
}