
public OnGameModeInit()
{
CreateObject(2927, 2067.4082, -2515.8733, 50.8578,);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/startlift", true) == 0)
{
MoveObject(2927, 2067.6858, -2515.8843, 15.5967 10, 0.5);
return 1;
}
return 0;
!
|
Originally Posted by yoennie
Hiii sampers
![]() Ive got a question about the function MoveObject because i dont really understand it i searched for it on wiki i found it but i think im doing it wrong with the coordinates so heres it. Код:
public OnGameModeInit()
{
CreateObject(2927, 2067.4082, -2515.8733, 50.8578,);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/startlift", true) == 0)
{
MoveObject(2927, 2067.6858, -2515.8843, 15.5967 10, 0.5);
return 1;
}
return 0;
you can change it to explain me about it thanks already ! |
instead of ^^
new Lift;
public OnGameModeInit()
{
 Lift = CreateObject(2927, 2067.4082, -2515.8733, 50.8578,); // Im not sure if this is right, I'm sure there is more parameters other than the Objectid,x,y,z... How did you create this object?
 return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
 if(strcmp(cmdtext, "/startlift", true) == 0)
 {
  MoveObject(Lift, 2067.6858, -2515.8843, 15.5967 10, 0.5);
  return 1;
 }
 return 0;
}