idk how to do MoveObject For This.
#1

hey guys , look

i have an hq .. and in the hq its have something like elevator..

so , i want to do move object
if player will do Command Like /Up , She Will Up To The Base Of The Clan.

i Have Pictures, look.

The Elevator :



Where she need to end in the Command /Up.



amm , this is the code of the elevator :
CreateObject(2669, 1783.5, 2848.3999023438, 11.199999809265, 0, 0, 30;

Oh , And how i do , its will back to his place in 5 seconds?

Help ? :/
Reply
#2

Where exactly do you wish that it stops? Post coordinates.
Reply
#3

AMM , I try this , but its is'nt work,
look :
if(strcmp(cmdtext, "/Up" ,true)==0)
{
MoveObject(stammashu, 1770.9905, 2807.6433, 81.2035, 2);
SendClientMessage(playerid, COLOR_WHITE, "дщтш рфъз бдцмзд..");
return 1;
}

if(strcmp(cmdtext, "/Down" ,true)==0)
{
MoveObject(stammashu, 1783.5, 2848.3999023438, 11.199999809265, 2);
SendClientMessage(playerid, COLOR_WHITE, "дщтш рсвш бдцмзд.");
return 1;
}
Reply
#4

Did you "define" it?
new stammashu;
Reply
#5

simple
Код:
new  elevator;
and
Код:
 elevator = CreateObject(2669, 1783.5, 2848.3999023438, 11.199999809265, 0, 0, 308); //Elevator actual position
now main thing
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/up",true)==0)//lift
{
MoveObject(lift, POST YOUR CODES HERE); // paste your code here
return 1;
}
if(strcmp(cmdtext,"/down",true)==0)//lift
{
MoveObject(lift, 1783.5, 2848.3999023438, 11.199999809265);
return 1;
}
return 0;
}
you can also put client message
Код:
SendClientMessage(playerid,your color here,"your message here!");
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)