29.05.2009, 18:16
as far as i know, you can't. Maybe someone else can find a solution.
I've also come up with this:
When the player moves the object set their variable to:
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.
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;
}
pawn Код:
PlayerMovedObject[playerid] = true;