Attaching Objects Bug ? -
Salsa - 28.07.2013
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(myobject, GetPlayerVehicleID(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(myobject1, GetPlayerVehicleID(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:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
mnrg[playerid] = CreateVehicle(562, X, Y, Z + 1, 90.0, 3, 3, 100000);
PutPlayerInVehicle(playerid, mnrg[playerid], 0);
SendClientMessage(playerid, 0x00CC00FF, "Vechile Successfully Spawned");
new myobject = CreateObject(362,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobject, GetPlayerVehicleID(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(myobject1, GetPlayerVehicleID(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);
}
Re: Attaching Objects Bug ? -
DJ_Shocker - 28.07.2013
Wrong section.
This is for server support!
You're asking for scripting help, post here:
http://forum.sa-mp.com/forumdisplay.php?f=12
Re: Attaching Objects Bug ? -
Salsa - 28.07.2013
Oh sorry then
but i can't post there now