help cmds
#5

Sorry for double post, but i got annother solution:

You can also create new variable called
pawn Код:
InMinigame[MAX_PLAYERS];
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

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   if(InMinigame[playerid] == 1) return 0 SendClientMessage(playerid, color, "You can't use commands in minigame");
}

Reply


Messages In This Thread
help cmds - by deather - 25.01.2010, 12:30
Re: help cmds - by lameguy - 25.01.2010, 12:32
Re: help cmds - by deather - 25.01.2010, 12:34
Re: help cmds - by lameguy - 25.01.2010, 12:35
Re: help cmds - by lameguy - 25.01.2010, 12:40

Forum Jump:


Users browsing this thread: 1 Guest(s)