AttachObjectToVehicle
#1

GameMod Using: Ravens RP (Fully edited by me)

This command dont want to attach object on vehicle....just send message and nothing else....

This is part of this FS http://forum.sa-mp.com/showthread.ph...highlight=neon
FS also dont want to work on my server....
I'm running server on 0.3c R5 (Linux) with plugins streamer(last update, by Incognito) and sscanf(last update), FS junkbuster(v10), that's all...

On my home server everything works fine, on windows with same plugins and FS....
pawn Code:
if(strcmp(cmd, "/undercover", true) == 0)
    {
        if(IsACop(playerid) || IsAFreecop(playerid))
        {
            SetPVarInt(playerid, "undercover", CreateDynamicObject(18646,0,0,0,0,0,0));
            SetPVarInt(playerid, "undercover1", CreateDynamicObject(18646,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "undercover"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "undercover1"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
            SendClientMessage(playerid, 0xFFFFFFAA, "You have Attched Undercover light on your vehicle!");
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "**You are not a Cop!");
        }
        return 1;
    }
Reply


Messages In This Thread
AttachObjectToVehicle - by Dragony92 - 24.08.2011, 09:12
Re: AttachObjectToVehicle - by Wesley221 - 24.08.2011, 09:19
Re: AttachObjectToVehicle - by Gh0sT_ - 24.08.2011, 09:24
Re: AttachObjectToVehicle - by Dragony92 - 24.08.2011, 09:35
Re: AttachObjectToVehicle - by Wesley221 - 24.08.2011, 09:36
Re: AttachObjectToVehicle - by Dragony92 - 24.08.2011, 09:39
Re: AttachObjectToVehicle - by Wesley221 - 24.08.2011, 09:40
Re: AttachObjectToVehicle - by Dragony92 - 24.08.2011, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)