2021-04-16, 12:42 AM
Code:
CMD:objekkendaraan(playerid, params[])
{
//SetPlayerArmour(playerid, Float:70.1);
//pakaiarmour[playerid] = 1; // kondisi sedang pakai armour
//SetPlayerAttachedObject(playerid, 3, 19515, 1 , 0.096999,0.058999,0.012999,4.199995,0.999981,8.800023,1.000000,1.221000,0.797000, 0xFFFFA500, 0xFFFFA500);
//EditAttachedObject(playerid, 3);
//contohdikendaraan = CreateDynamicObject(18649, 0,0,0,0,0,0);
//CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0)
//CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0)
contohdikendaraan = CreateDynamicObject(18649, Float:0.0, Float:0.0, Float:0.0, Float:0.0, Float:0.0, Float:0.0, 0, 0, -1, Float:20.0,Float:20.0, -1, 0);
SendClientMessage(playerid, COLOR_GREEN, "Anda pasang neon hijau.");
//SetDynamicObjectMaterialText(tmpobjid, 0, "Pesawat Putu", 130, "Arial", 70, 1, 0xFFFFFFFF, 0x00000000, 1);
//SetDynamicObjectMaterialText(STREAMER_TAG_OBJECT contohdikendaraan, 0, "Solusi", 130, "Arial", 70, 1,? 0xFFFFFFFF, 0, 1);
//AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ)
pInfo[playerid][pNeon] = AttachDynamicObjectToVehicle( contohdikendaraan, GetPlayerVehicleID(playerid));
? /*
? Float:0.0, // kanan kiri
? Float:-2.0, // kedepan
? ? Float:0.0, // ke atas
? ? Float:2.0, Float:0.0, Float:0.0);
? */
//AttachDynamicObjectToVehicle(STREAMER_TAG_OBJECT objectid, vehicleid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz)
//EditPlayerObject(playerid, objectid);
//RemovePlayerFromVehicle(playerid);
//EditAttachedObject(playerid, idterttach);
//EditObject(playerid, contohdikendaraan);
//contohdikendaraan = false;
? //Streamer_SetIntData(STREAMER_TYPE_OBJECT, contohdikendaraan, E_STREAMER_ATTACHED_VEHICLE, 2);
//Streamer_SetFloatData(
? //SetDynamicObjectMaterial(contohdikendaraan, 0, 10765, "airportgnd_sfse", "white", -256);
EditDynamicObject(playerid, contohdikendaraan);
? Streamer_Update(playerid);
//EditDynamicObject(playerid, pInfo[playerid][pNeon]);
//EditAttachedObject(playerid, contohdikendaraan);
return 1;
}