Gates
#6

Heres a example of a working gate

Код:
new gate;

public OnGameModeInit()
{
	gate = CreateObject(0,0,0,0,0,0,0);
	return 1;
	}

public OnPlayerCommandText(playerid,cmdtext[])
{
	dcmd(open,4,cmdtext);
	return 0;
}
dcmd_open(playerid,params[])
{
	#pragma unused params
	MoveObject(gate,1,1,1,2);
	return 1;
}
MoveObject moves the "gate" til cord 1,1,1 with 2 in speed pretty simple
Reply


Messages In This Thread
Gates - by Tigerbeast11 - 26.09.2009, 14:46
Re: Gates - by Desert - 26.09.2009, 14:55
Re: Gates - by Tigerbeast11 - 26.09.2009, 14:58
Re: Gates - by AG Adam - 26.09.2009, 14:59
Re: Gates - by [XST]O_x - 26.09.2009, 15:03
Re: Gates - by Desert - 26.09.2009, 15:03
Re: Gates - by AG Adam - 26.09.2009, 15:12
Re: Gates - by Tigerbeast11 - 26.09.2009, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)