[Include] AttachStreamToObject [attach easily audio streams to SA-MP objects]
#8

HELP! I try this:
pawn Code:
if(strcmp(cmdtext, "/vmusic", true) == 0)
{
    Object[playerid] = CreateObject(1239,0,0,0,0,0,0);
    new Float:VPos[3];
    GetVehiclePos(playerid,VPos[0],VPos[1],VPos[2]);
    AttachObjectToVehicle(Object[playerid], GetPlayerVehicleID(playerid), 0.409729004, 0.526367188, 0.206963539, 0, 0, 0);
    AttachStreamToObject(Object[playerid], 20.0, "url-what-ever");
    return 1;
}
But it doesn't works.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)