Help with Moving an object
#7

Quote:
Originally Posted by Rafa
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/open", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, range, x, y, z))
        {
            if(GetPlayerMoney(playerid) <= 1000) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough money to open the gate");
            GivePlayerMoney(playerid, -1000);// will open for 1000$
            MoveObject(playerid, x, y, z, speed);
            return 1;
        }
        return 1;
    }
    return 0;
}
good luck
How to make it without command and where to put it?? :S
Reply


Messages In This Thread
Help with Moving an object - by thimo - 19.12.2010, 18:53
Re: Help with Moving an object - by Mr.Jvxmc - 19.12.2010, 18:56
Re: Help with Moving an object - by Rafa - 19.12.2010, 18:57
Re: Help with Moving an object - by thimo - 19.12.2010, 18:57
Re: Help with Moving an object - by thimo - 19.12.2010, 18:59
Re: Help with Moving an object - by Rafa - 19.12.2010, 19:00
Re: Help with Moving an object - by thimo - 19.12.2010, 19:29
Re: Help with Moving an object - by WillyP - 19.12.2010, 19:40
Re: Help with Moving an object - by thimo - 19.12.2010, 19:46
Re: Help with Moving an object - by WillyP - 19.12.2010, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)