Freezing players when cw finishes
#5

pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
    if(PlayerInfo[i][pCW] == 1)
    {
        TogglePlayerControllable(i, 0);
        SetTimer("Control", 6000, false);
    }
}
 
for(new i; i < MAX_PLAYERS; i++)
{
    if(PlayerInfo[i][pCW] == 2)
    {
        TogglePlayerControllable(i, 0);
        SetTimer("Control", 6000, false);
    }
}

public Control()
{
    for(new i; i < MAX_PLAYERS; i++)
    TogglePlayerControllable(i, 1); // 1 to allow them to move, 0 to disallow it
}
pawn Код:
if(PlayerInfo[playerid][pCW] == 2 ||  PlayerInfo[playerid][pCW] == 1 )
Why are you using this? It is completely useless as you can make a loop that unfreezes all players
Reply


Messages In This Thread
Freezing players when cw finishes - by RedFusion - 16.08.2010, 21:58
Re: Freezing players when cw finishes - by HuRRiCaNe - 16.08.2010, 22:17
Re: Freezing players when cw finishes - by RedFusion - 17.08.2010, 00:27
Re: Freezing players when cw finishes - by RedFusion - 17.08.2010, 12:26
Re: Freezing players when cw finishes - by Claude - 17.08.2010, 12:51
Re: Freezing players when cw finishes - by RedFusion - 17.08.2010, 13:40

Forum Jump:


Users browsing this thread: 2 Guest(s)