TogglePlayerControlable please help me !
#4

create a global variable
On Top
pawn Код:
new Freezed[MAX_PLAYERS];
In your freeze command, When you freeze someone add this
pawn Код:
Freezed[playerid] = 1;
And when un-freezing check
under /unfreeze command
pawn Код:
CMD:unfreeze(playerid, params[])
{
    new id;
    if(Freezed[playerid] == 1) //Means player is Frozen
    {
       
        TogglePlayerControlable(id, true); //Unfreeze player
    }
    else // Means player is not frozen
    {
        SendClientMessage(playerid, -1, "Player is not frozen");
    }
    return 1;
}
Note: This will not work, it's just example. So don't copy it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)