[Ajuda] MoveObject
#2

Tu quer o codigo pronto


Dб uma olhada:
https://sampwiki.blast.hk/wiki/MoveObject


E estuda e entende isso aqui:


pawn Код:
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);
    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;
}
Reply


Messages In This Thread
MoveObject - by VeNuZ_ - 10.07.2012, 12:32
Re: MoveObject - by andmeida10 - 10.07.2012, 12:34
Re: MoveObject - by VeNuZ_ - 10.07.2012, 12:36
Re: MoveObject - by VeNuZ_ - 10.07.2012, 12:39
Re: MoveObject - by andmeida10 - 10.07.2012, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)