I have problem with moving gate ... -
C0olp1x - 17.11.2014
here are the Z coordinates :25.66892
and i want the gate to move up so i set them to :35.66892
and the gate starts moving up but, its fliping,turning around ...
It won't move up propertly ... here is the command ...
Код:
if(strcmp(cmdtext,"/open",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,786.6944,-1152.1277,23.6295))
{
MoveDynamicObject(gate,786.29541, -1152.44470, 25.66892,1);
SetTimer("Closing",10000,0);
}
return 1;
}
forward Closing(playerid);
public Closing(playerid)
{
MoveDynamicObject(gate,786.29541, -1152.44470, 35.66892,1);
return 1;
}
Re: I have problem with moving gate ... -
semara123 - 17.11.2014
hmmmm i think you should try this :
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)
{
MoveDynamicObject(gate,786.29541, -1152.44470, 35.66892,1);
return 1;
}
//----------------------------------------------------------------------
hope this help
if this helpful give me +rep
Re: I have problem with moving gate ... -
C0olp1x - 17.11.2014
That doesn't work ....
Re: I have problem with moving gate ... -
semara123 - 17.11.2014
hmmm are you using streamer
Re: I have problem with moving gate ... -
C0olp1x - 17.11.2014
yes !
Re: I have problem with moving gate ... -
semara123 - 17.11.2014
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;
}
//----------------------------------------------------------------------
Re: I have problem with moving gate ... -
C0olp1x - 17.11.2014
This one is same like one up ... and it doen't work
Re: I have problem with moving gate ... -
semara123 - 17.11.2014
change settimer to settimerex like this :
SetTimerEx("Closing", 1000, false, "i", playerid);
Re: I have problem with moving gate ... -
C0olp1x - 17.11.2014
I'm tired to try this now , i need sleep ... Private msg me ...
Re: I have problem with moving gate ... -
semara123 - 17.11.2014
opps my faullt
if(strcmp(cmdtext,"/open",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,786.6944,-1152.1277,23.6295))
{
MoveDynamicObject(gate,786.29541, -1152.44470, 25.66892,1); // use the open coordinate
SetTimer("Closing",10000,0);
}
return 1;
}
forward Closing(playerid);
public Closing(playerid)
{
MoveDynamicObject(gate,x, y, z,1); // use the closed door coordinate dont use opened coordinate
return 1;
}