AttachObjectToVehicle
#1

hello, i used the filescript to create boxes using (ivo) AttachObjectToVehicle
when the player type / pbox......2 player is more work together giving the same command
while delivering the box, it disappears from the first that took and buga, how do I not give bug?

example:

pawn Код:
if(PlayerW[playerid][Work] == box){
    box1 = CreateObject(id ,0,0,-1000,0,0,0,100);
    box2 = CreateObject(id,0,0,-1000,0,0,0,100);
    AttachObjectToVehicle(box1, GetPlayerVehicleID(playerid), 0.000000,-0.750000,0.300000,0.000000,0.000000,89.099983);
    AttachObjectToVehicle(box2, GetPlayerVehicleID(playerid), 0.075000,-0.750000,0.449999,0.000000,0.000000,89.099983);
    SetPlayerMapIcon(playerid, 37, 1324.5773,286.8284,20.0452, 17, 0, MAPICON_GLOBAL);
    tbox[playerid] = 1;
Reply


Messages In This Thread
AttachObjectToVehicle - by Clarck - 16.05.2015, 13:09
Re: AttachObjectToVehicle - by Logofero - 16.05.2015, 14:24
Re: AttachObjectToVehicle - by Clarck - 17.05.2015, 13:18
Re: AttachObjectToVehicle - by Konstantinos - 17.05.2015, 13:25
Re: AttachObjectToVehicle - by Logofero - 18.05.2015, 06:25

Forum Jump:


Users browsing this thread: 1 Guest(s)