29.05.2009, 18:24
oops, my bad. Here it is:
When the player moves the object set their variable to:
but i still wuoldn't recommend that compared to the timer.
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(i,1);
SendClientMessage(i, 0x99FF00AA, "***You have been unfrozen :D");
PlayerMovedObject[i] = false;
}
}
}
return 1;
}
pawn Код:
PlayerMovedObject[playerid] = true;