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
#2

Wrong section.
This is for server support!
You're asking for scripting help, post here: http://forum.sa-mp.com/forumdisplay.php?f=12
Reply
#3

Oh sorry then
but i can't post there now
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)