neon problem
#1

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");
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)