Plugin - Objetos con Movimiento
#10

Quote:
Originally Posted by GroX0r
Посмотреть сообщение
mmm Como es la Syntaxis o la Palabra para mover los objetos sin Plugin? xD..! MoveObject?

Y otra pregunta... їSe pueden usar 2 Plugins a la vez? xD
Wiki: https://sampwiki.blast.hk/wiki/MoveObject

Quote:

Parameters:
pawn Код:
MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed)
objectid The objectid you want to move.
Float:X The new X coordinate.
Float:Y The new Y coordinate.
Float:Z The new Z coordinate.
Float:Speed The speed of which the object will be moved with.

Returns The time it will take for the object to move in milliseconds.

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


Ejemplo:


pawn Код:
public OnGameModeInit()
{
    obj = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    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;
    }
    return 0;
}
Ejemplo by me
pawn Код:
MoveObject(la id de mi objeto guay, Posicion a la que uqieres que vaya X, Lo mismo con Y, lo mismo zon Z, Velocida en MS)
Reply


Messages In This Thread
Plugin - Objetos con Movimiento - by GroX0r - 25.10.2010, 02:16
Re: Plugin - Objetos con Movimiento - by Miguel - 25.10.2010, 02:22
Respuesta: Plugin - Objetos con Movimiento - by GroX0r - 25.10.2010, 02:33
Respuesta: Plugin - Objetos con Movimiento - by DarkChildren - 25.10.2010, 13:29
Re: Plugin - Objetos con Movimiento - by SuperMarioRol - 25.10.2010, 14:01
Re: Plugin - Objetos con Movimiento - by iPerryX - 25.10.2010, 14:10
Respuesta: Re: Plugin - Objetos con Movimiento - by GroX0r - 25.10.2010, 22:34
Re: Plugin - Objetos con Movimiento - by cocolabush - 25.10.2010, 23:18
Re: Plugin - Objetos con Movimiento - by jurgen - 26.10.2010, 02:31
Re: Respuesta: Re: Plugin - Objetos con Movimiento - by SuperMarioRol - 26.10.2010, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)