I have problem with moving gate ...
#1

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;
}
Reply
#2

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
Reply
#3

That doesn't work ....
Reply
#4

hmmm are you using streamer
Reply
#5

yes !
Reply
#6

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;
}
//----------------------------------------------------------------------
Reply
#7

This one is same like one up ... and it doen't work
Reply
#8

change settimer to settimerex like this :

SetTimerEx("Closing", 1000, false, "i", playerid);
Reply
#9

I'm tired to try this now , i need sleep ... Private msg me ...
Reply
#10

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)