Enabling player to move after MoveObject
#14

as far as i know, you can't. Maybe someone else can find a solution.

I've also come up with this:

pawn Код:
new bool:PlayerMovedObject[MAX_PLAYERS] = false;

public OnObjectMoved(objectid)
{
    if(objectid == plantfour)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
    {
            if(IsPlayerConnected(i) && PlayerMovedObject[i])
            {
                TogglePlayerControllable(playerid,1);
                SendClientMessage(playerid, 0x99FF00AA, "***You have been unfrozen :D");
                PlayerMovedObject[i] = false;
            }
        }
    }
    return 1;
}
When the player moves the object set their variable to:
pawn Код:
PlayerMovedObject[playerid] = true;
Obviously this is not reliable as when someone moves an object and while that object is moving someone else does this, they will both get unfrozen. Not as reliable as the timer.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)