Help with move object
#1

Hello everybode, i have one problem with move object.Please someone to create me one move object i wil give cordinates and will give +rep i want automatic gates when if you want to enter you need to pay 300$ this is cordinates and please give me in pastebin.

Код:
CreateObject(968,2283.31884766,-2306.16162109,12.54132462,0.00000000,0.00000000,45.65478516); //normal
CreateObject(968,2284.83837891,-2304.86083984,13.54132462,0.00000000,87.34002686,43.66979980); //Down
Sorry for my fucking english
Reply
#2

Код:
new obj;
obj = CreateObject(968,2283.3188,-2306.1616,12.5413,0.0000,0.0000,45.6547); //normal

MoveObject(obj,2284.8383,-2304.8608,13.5413, 2.0); //Down
Reply
#3

Here try this it is untested.

pawn Код:
public OnGameModeInit()
{
    CreateObject(968,2283.31884766,-2306.16162109,12.54132462,0.00000000,0.00000000,45.65478516); //normal
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/opengate", cmdtext, true, 10) == 0)
    {
        if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid,COLOR_BRIGHTRED,"No Money Dude");
        {
            else
            {
                new string[50];
                new movetime = MoveObject(obj, 2284.8383,-2304.8608,13.5413, 2.0);
                format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
                SendClientMessage(playerid, 0xFF000000, string);
            }
        }
        return 1;
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)