23.12.2010, 16:13
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?
I'm using ZCMD
Код:
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