22.10.2012, 21:54
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");