SA-MP Forums Archive
[Ajuda] Objeto nгo move - 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] Objeto nгo move (/showthread.php?tid=335328)



[Ajuda] Objeto nгo move - KinX - 18.04.2012

Ae, glr, eu to tentando fazer 1 objeto mover, na verdade, eu soh quero mover a rotaзгo dele, entao eu fiz assim:
Mas ele nao ta movendo a rotaзгo, alguem ajuda

pawn Код:
#include <a_samp>

forward fechar(playerid);
new teste;

public OnFilterScriptInit()
{
teste = CreateObject(968, 73.92, -1521.61, 4.94,   0.00, -84.00, 82.00);
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if((newkeys==KEY_SPRINT))
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0,  1513.95, -1877.33, 13.15))
        {
        MoveObject(teste,73.92, -1521.61, 4.94, 2.0, 0.00, -33.00, 82.00);
        SetTimer("fechar",6000,false);
        }
           return 1;
     }
    return 0;
}


public fechar(playerid)
{
MoveObject(teste,  73.92, -1521.61, 4.94, 2.0, 0.00, -84.00, 82.00);
return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
 if(strcmp("/teste", cmdtext, true, 10) == 0)
 {
 SetPlayerPos(playerid, 73.92, -1521.61, 4.94);
 return 1;
 }
 return 0;
}



Re: [Ajuda] Objeto nгo move - ViniBorn - 18.04.2012

Jб que й pra um jogador sу, usa SetTimerEx.


Re: [Ajuda] Objeto nгo move - KinX - 18.04.2012

Ops, ja consegui resolver
Vlw ae