[HELP] object wont move
#1

hi,

i got a /pay command so u can open a gate to a car park but the gate wont open and i dont know wot to do,
and you can do it from anywere in sa can someone sort it out please

http://pastebin.com/T8VPVvH1

please help.
Reply
#2

the speed

pawn Код:
#include <a_samp>

#define COLOR_RED 0xAA3333AA

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/pay", cmdtext, true, 10) == 0)
    {
    new money;
    money = GetPlayerMoney(playerid);
        if(IsPlayerInRangeOfPoint(playerid,0.0/*range*/,1105.6422,-1738.0181,13.4461))return SendClientMessage(playerid,COLOR_RED,"You are too far from the gate to pay");
        if(money < 500)return SendClientMessage(playerid,COLOR_RED,"You do not have enough money");
    MoveObject(980,1101.724609375,-1741.2763671875,15.273958206177, 5.0); // U have forgoten the speed of the opening :)
    GivePlayerMoney(playerid, -250);
    SendClientMessage(playerid,COLOR_RED,"You have just paid and the gate is open");
        return 1;
     }
     return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)