17.08.2010, 12:51
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 )