Attaching Objects Bug ?
#1

simply i made some vehicles Attaching Objects
but problem is those objects attaching to other vehicles Too is anything wrong on my command ? take a look please

here is command

PHP код:
    if (strcmp(cmdtext"/miniguncar"true) == 0){
    new 
myobject CreateObject(362,0,0,-1000,0,0,0,100);
    
AttachObjectToVehicle(myobjectGetPlayerVehicleID(playerid), -0.899999,1.500000,0.000000,-405.000488,-56.700008,1.000000);
    new 
myobject1 CreateObject(362,0,0,-1000,0,0,0,100);
    
AttachObjectToVehicle(myobject1GetPlayerVehicleID(playerid), 0.524999,1.500000,0.000000,-405.000488,-56.700008,1.000000);
    return 
1;} 
Liste item

PHP код:
if(listitem == 1)
            {
            new 
mnrg[MAX_PLAYERS];
            new 
msg[128];
            new 
Float:XFloat:YFloat:Z;
            
GetPlayerPos(playeridXYZ);
            
mnrg[playerid] = CreateVehicle(562XY190.033100000);
            
PutPlayerInVehicle(playeridmnrg[playerid], 0);
            
SendClientMessage(playerid0x00CC00FF"Vechile Successfully Spawned");
            new 
myobject CreateObject(362,0,0,-1000,0,0,0,100);
            
AttachObjectToVehicle(myobjectGetPlayerVehicleID(playerid), -0.899999,1.500000,0.000000,-405.000488,-56.700008,1.000000);
            new 
myobject1 CreateObject(362,0,0,-1000,0,0,0,100);
                
AttachObjectToVehicle(myobject1GetPlayerVehicleID(playerid), 0.524999,1.500000,0.000000,-405.000488,-56.700008,1.000000);
                
GetPlayerName(playerid,mnrg,MAX_PLAYER_NAME);
            
format(msg,sizeof(msg),"%s [%i] has Spawned A Minigun Car From Cool Cars : [/coolcars]",mnrg,playerid);
            
SendClientMessageToAll(COLOR_PINK,msg);
            
GetPlayerVehicleID(playerid);
            
ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
            
AddVehicleComponent(GetPlayerVehicleID(playerid), 1034);
               
AddVehicleComponent(GetPlayerVehicleID(playerid), 1035);
               
AddVehicleComponent(GetPlayerVehicleID(playerid), 1036);
               
AddVehicleComponent(GetPlayerVehicleID(playerid), 1040);
               
AddVehicleComponent(GetPlayerVehicleID(playerid), 1147);
               
AddVehicleComponent(GetPlayerVehicleID(playerid), 1148);
               
AddVehicleComponent(GetPlayerVehicleID(playerid), 1171);
               
AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
            } 
Reply


Messages In This Thread
Attaching Objects Bug ? - by Salsa - 28.07.2013, 04:10
Re: Attaching Objects Bug ? - by DJ_Shocker - 28.07.2013, 05:54
Re: Attaching Objects Bug ? - by Salsa - 28.07.2013, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)