Removing Objects Off A Vehicle On Respawn
#1

Hi guys, I made a command to attach neons to your car but i don't know how to remove them when the car respawns,When i exit the car and it respawns the neons stay underneath :/.Any suggestions on what to do?

Код:
    COMMAND:neon1(playerid, params[]) // Blue Car Neon
    {
        SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
        SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
        AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
        AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
        SendClientMessage(playerid, 0xFFFFFFAA, "† Blue Neons Added †");

I'm using ZCMD
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)