17.11.2014, 00:56
try this delete the dynamic
if(strcmp(cmdtext,"/open",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,786.6944,-1152.1277,23.6295))
{
SetTimer("Closing",10000,0);
}
return 1;
}
forward Closing(playerid);
public Closing(playerid)
{
MoveObject(gate,786.29541, -1152.44470, 35.66892,1);
return 1;
}
//----------------------------------------------------------------------
if(strcmp(cmdtext,"/open",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,786.6944,-1152.1277,23.6295))
{
SetTimer("Closing",10000,0);
}
return 1;
}
forward Closing(playerid);
public Closing(playerid)
{
MoveObject(gate,786.29541, -1152.44470, 35.66892,1);
return 1;
}
//----------------------------------------------------------------------