Need help which move object which time and money
#1

I need help how to make move object which time and money pls help me
Reply
#2

Explane what do you want, how do you mean move object with time and money, do you want automatic gates and when u open them u pay xy$?
Reply
#3

i meen the gate will open after 1,2,3,4,5, min and pay and after 5-10 min move back and play again
Reply
#4

do you understand me ?
Reply
#5

pawn Код:
if(strcmp(cmdtext, "/open", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid, range, x, y, z)) return SendClientMessage(playerid,RED,"You are not near the gate." );
    {
    MoveObject(gate, X, Y, Z, SPEED);
    SetTimer("CloseGate",5000,false);// here is the closing gate she will close in 5 sec u can change that and set it to what u want u can change and that "false" and make it in "true" if u want to repeat the opening and closing of the gate.
    return 1;
        }
and u need to make the callbacks:

pawn Код:
public CloseGate()
{
MoveObject(playerid, x, y, z, SPEED);
return 1;
}
when u will finish with this add at the top of ur script
pawn Код:
forward CloseGate();
Good luck...
Reply
#6

i will try now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)