Come back object
#1

I have a gate thing which when /open itdestroys the gate but whats the cmd for the gates to come back?
pawn Код:
if(!strcmp(cmdtext, "/open", true)){
           DestroyDynamicObject(impoundgate1);
            DestroyDynamicObject(impoundgate2);
            SendClientMessage(playerid, 0x0000BBAA, "Impound Opened");
            return 1;
        }
Reply
#2

Thats because it is told to destroy the object...
Reply
#3

why dont you just move the object? but if you insist on destroying it make a cmd to create object in that spot
Reply
#4

I tried to move it but every time.. it wouldnt move :L
Reply
#5

What do you mean by "move it". Did you tried using MoveObject?
Reply
#6

MoveDynamicObject(impoundgate1,x+5,y,z,4);
return 1;
fill in x,y,z with its cords
you dont have to +5 the x you can move y or z or all 3 + or - have fun
Reply
#7

I used
pawn Код:
if(!strcmp(cmdtext, "/iio", true)){
           MoveDynamicObject(impoundgate1, 1901.51, -1865.99, 14.65,   0.00, 0.00, 272.37);
           MoveDynamicObject(impoundgate2, 1892.43, -1865.98, 14.65,   0.00, 0.00, 271.86);
            SendClientMessage(playerid, 0x0000BBAA, "Impound Opened");
            return 1;
        }
        if(!strcmp(cmdtext, "/iic", true)){
     MoveDynamicObject(impoundgate1, 1892.43, -1865.98, 14.65,   0.00, 0.00, 180.00); //gate1
     MoveDynamicObject(impoundgate2, 1892.43, -1865.98, 14.65,   0.00, 0.00, 180.00); //gate2
            SendClientMessage(playerid, 0xAA3333AA, "Impound Closed");
            return 1;
        }
Reply
#8

Is it working?
Reply
#9

The code I just sent doesnt work.
Reply
#10

BUMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)