how to make same command at moveable gate
#2

some guy posted this somewhere its right but bear in mind you need the co ordinated i have edited it to shopw you where the co ordinates go

Quote:

It is new obj; // Somewhere at the top of your script

public OnGameModeInit()
{
obj = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); //coords here
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/moveobject", true) == 0)
{
new string[50];
new movetime = MoveObject(obj, 0, 0, 10, 2.00);
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
SendClientMessage(playerid, 0xFF000000, string);
return 1;
}

Reply


Messages In This Thread
how to make same command at moveable gate - by Aizen - 19.04.2011, 12:16
Re: how to make same command at moveable gate - by peterRook - 19.04.2011, 12:26
Re: how to make same command at moveable gate - by alpha500delta - 19.04.2011, 13:15
Re: how to make same command at moveable gate - by Aizen - 19.04.2011, 15:37
Re: how to make same command at moveable gate - by alpha500delta - 19.04.2011, 15:39
Re: how to make same command at moveable gate - by Aizen - 19.04.2011, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)