Help with Variables.
#9

Quote:
Originally Posted by Super_Panda
Посмотреть сообщение
Fine, I fixed it!

And now this wont unfreeze all the players.....just me...

pawn Код:
dcmd_comenzar(playerid,params[])
{
        #pragma unused params
    if(PlayerInfo[playerid][Level] >= 4) {
        CMDMessageToAdmins(playerid,"Comenzar");
        for(new i = 0; i < MAX_PLAYERS; i++) {
            if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel]) {
                PlayerPlaySound(i,1057,0.0,0.0,0.0); TogglePlayerControllable(playerid,true); PlayerInfo[i][Frozen] = 0;
            }
        }
    }
}
pawn Код:
TogglePlayerControllable(i, true);
EDIT: Having (playerid, true) will only unfreeze the player that has executed the command... in this case... you.
Reply


Messages In This Thread
Help with Variables. - by Super_Panda - 16.12.2011, 02:01
Respuesta: Help with Variables. - by Super_Panda - 16.12.2011, 02:16
Re: Help with Variables. - by [ABK]Antonio - 16.12.2011, 02:21
Respuesta: Help with Variables. - by Super_Panda - 16.12.2011, 02:22
Re: Help with Variables. - by XFlawless - 16.12.2011, 02:24
Respuesta: Help with Variables. - by Super_Panda - 16.12.2011, 02:27
Respuesta: Help with Variables. - by Super_Panda - 16.12.2011, 02:35
Respuesta: Help with Variables. - by Super_Panda - 16.12.2011, 02:57
Re: Respuesta: Help with Variables. - by Thresholdold - 16.12.2011, 03:31

Forum Jump:


Users browsing this thread: 2 Guest(s)