AttachObjectToVehicle. HELP!
#2

Quote:
Originally Posted by Mecool
Посмотреть сообщение
This is my command:
Код:
if (strcmp("/siren", cmdtext, true, 6) == 0)
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "You must be in a vehicle to use this command!");
        new object = CreateDynamicObject(18646,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(object, GetPlayerVehicleID(playerid), -0.300000,0.000000,0.749999,0.000000,0.000000,0.000000);
        return 1;
    }
What is wrong?
I am unsure about the streamer plugin you better use the normal CreateObject function and give it a try. You can do like this:-

pawn Код:
new objectid = CreateObject(...); // your own createObject
new vehicleid = GetPlayerVehicleID(playerid); // put the vehicle id in vehicleid variable
AttachObjectToVehicle(objectid, vehicleid, fx, fy, fz,frx, fry, frz); // and finally attachs to the vehicle.
-FalconX
Reply


Messages In This Thread
AttachObjectToVehicle. HELP! - by Mecool - 29.04.2012, 20:18
Re: AttachObjectToVehicle. HELP! - by FalconX - 29.04.2012, 21:07
Re: AttachObjectToVehicle. HELP! - by warcodes_ - 30.04.2012, 06:07
Re: AttachObjectToVehicle. HELP! - by Mecool - 02.05.2012, 16:26

Forum Jump:


Users browsing this thread: 3 Guest(s)