SA-MP Forums Archive
neon problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: neon problem (/showthread.php?tid=278172)



neon problem - Tanush123 - 21.08.2011

Well if i add neons and the car respawns, it spawns with the neon again, how do i fix it?? onvehiclespawn
pawn Code:
DestroyObject(GetPVarInt(playerid, "neon"));
            DeletePVar(playerid, "neon");
            DestroyObject(GetPVarInt(playerid, "neon1"));
            DeletePVar(playerid, "neon1");
            DestroyObject(GetPVarInt(playerid, "neon2"));
            DeletePVar(playerid, "neon2");
            DestroyObject(GetPVarInt(playerid, "neon3"));
            DeletePVar(playerid, "neon3");
            DestroyObject(GetPVarInt(playerid, "neon4"));
            DeletePVar(playerid, "neon4");
            DestroyObject(GetPVarInt(playerid, "neon5"));
            DeletePVar(playerid, "neon5");
            DestroyObject(GetPVarInt(playerid, "neon6"));
            DeletePVar(playerid, "neon6");
            DestroyObject(GetPVarInt(playerid, "neon7"));
            DeletePVar(playerid, "neon7");
            DestroyObject(GetPVarInt(playerid, "neon8"));
            DeletePVar(playerid, "neon8");
            DestroyObject(GetPVarInt(playerid, "neon9"));
            DeletePVar(playerid, "neon9");
            DestroyObject(GetPVarInt(playerid, "neon10"));
            DeletePVar(playerid, "neon10");
            DestroyObject(GetPVarInt(playerid, "neon11"));
            DeletePVar(playerid, "neon11");
            DestroyObject(GetPVarInt(playerid, "neon12"));
            DeletePVar(playerid, "neon12");
            DestroyObject(GetPVarInt(playerid, "neon13"));
            DeletePVar(playerid, "neon13");
            DestroyObject(GetPVarInt(playerid, "interior"));
            DeletePVar(playerid, "interior");
            DestroyObject(GetPVarInt(playerid, "interior1"));
            DeletePVar(playerid, "interior1");
            DestroyObject(GetPVarInt(playerid, "back"));
            DeletePVar(playerid, "back");
            DestroyObject(GetPVarInt(playerid, "back1"));
            DeletePVar(playerid, "back1");
            DestroyObject(GetPVarInt(playerid, "front"));
            DeletePVar(playerid, "front");
            DestroyObject(GetPVarInt(playerid, "front1"));
            DeletePVar(playerid, "front1");
            DestroyObject(GetPVarInt(playerid, "undercover"));
            DeletePVar(playerid, "undercover");
            DestroyObject(GetPVarInt(playerid, "undercover1"));
            DeletePVar(playerid, "undercover1");



Re: neon problem - =WoR=G4M3Ov3r - 21.08.2011

https://sampwiki.blast.hk/wiki/DestroyObject