Gate Issue
#1

I've got a problem with my gates.. they arent moving at all...
Код:
if(!strcmp(cmdtext, "/hqopen",true))
	{
		MoveObject(ColiesGate, -197.42, 1203.58, 13.06,2.0);
		SendClientMessage(playerid, COLOR_RED, "<!>Colies gate is now open!");
		return 1;
	}
	if(!strcmp(cmdtext, "/hqclose",true))
	{
		MoveObject(ColiesGate, -197.42, 1203.58, 22.29,2.0);
		SendClientMessage(playerid, COLOR_RED, "<!>Colies gate is now closed!");
		return 1;
	}
ColiesGate = CreateDynamicObject(971, -197.42, 1203.58, 22.29, 0.00, 0.00, 0.00);
Reply
#2

pawn Код:
new ColiesGate;
public OnGameModeInit()
{
ColiesGate = CreateObject(971, -197.42, 1203.58, 22.29, 0.00, 0.00, 0.00);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/hqopen"))
{
MoveObject(ColiesGate, -197.42, 1203.58, 13.06, 2.0);
return 1;
}
if(!strcmp(cmdtext, "/hqclose"))
{
MoveObject(ColiesGate, -197.42, 1203.58, 22.29, 2.0);
return 1;
}
return 0;
}
Reply
#3

Try to create dynamic objects that will be easy
Reply
#4

Hmm thanks.
Reply
#5

Use MoveDynamicObject instead of MoveObject.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)