Enabling player to move after MoveObject
#15

Quote:
Originally Posted by [B2K
Hustler ]
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.
You still can't use that code because playerid isn't in the callback.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)