SA-MP Forums Archive
[Ajuda] MoveObject - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] MoveObject (/showthread.php?tid=358403)



MoveObject - VeNuZ_ - 10.07.2012

Oi, alguem me podia criar moveobject de portao pondo aqui o code eu dando as cordenadas ?

Код:
Cordenadas.:

Fechado.:
CreateObject(980, -1437.8000488281, 335.10000610352, 33.200000762939, 0, 0, 0);

Aberto.:
CreateObject(980, -1425.40002441,333.79998779,33.20000076,0.00000000,0.00000000,0.00000000);

Quero o new assim.:
" new PortaomSc "
Alguem me ajuda sff ?



Re: MoveObject - andmeida10 - 10.07.2012

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;
}



Re: MoveObject - VeNuZ_ - 10.07.2012

Quote:
Originally Posted by andmeida10
Посмотреть сообщение
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;
}
Jб tentei isso e nao deu , vou esprimentar de novo


Re: MoveObject - VeNuZ_ - 10.07.2012

Resultou muito obrigado


Re: MoveObject - andmeida10 - 10.07.2012

De boa...

Inda bem q ajudei