SA-MP Forums Archive
Destroy Attached Object - 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)
+--- Thread: Destroy Attached Object (/showthread.php?tid=387019)



Destroy Attached Object - Beljulji - 22.10.2012

how i should add that OnplayerStateChange so when someone is in car and attach neons to it and after teleport somewhere car will stay with neons how i can do it when player state change neons from car will dissapear
Код:
DestroyObject(GetPVarInt(playerid, "Blue1"));
	DeletePVar(playerid, "Neon");
 	DestroyObject(GetPVarInt(playerid, "Blue2"));
  	DeletePVar(playerid, "Neon");
  	DestroyObject(GetPVarInt(playerid, "Green1"));
  	DeletePVar(playerid, "Neon");
   	DestroyObject(GetPVarInt(playerid, "Green2"));
  	DeletePVar(playerid, "Neon");
  	DestroyObject(GetPVarInt(playerid, "Pink1"));
  	DeletePVar(playerid, "Neon");
  	DestroyObject(GetPVarInt(playerid, "Pink2"));
  	DeletePVar(playerid, "Neon");
 	DestroyObject(GetPVarInt(playerid, "Red1"));
	DeletePVar(playerid, "Neon");
	DestroyObject(GetPVarInt(playerid, "Red2"));
	DeletePVar(playerid, "Neon");
	DestroyObject(GetPVarInt(playerid, "White1"));
   	DeletePVar(playerid, "Neon");
   	DestroyObject(GetPVarInt(playerid, "White2"));
   	DeletePVar(playerid, "Neon");
   	DestroyObject(GetPVarInt(playerid, "Yellow1"));
  	DeletePVar(playerid, "Neon");
  	DestroyObject(GetPVarInt(playerid, "Yellow2"));
 	DeletePVar(playerid, "Neon");