SA-MP Forums Archive
[Suggestions / Bugs] Fix OnVehicleSpawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Archive (https://sampforum.blast.hk/forumdisplay.php?fid=88)
+---- Thread: [Suggestions / Bugs] Fix OnVehicleSpawn (/showthread.php?tid=282876)



[Suggestions / Bugs] Fix OnVehicleSpawn - Kar - 12.09.2011

Fix OnVehicleSpawn so we don't have to use timer with a interval or 0 or 1 or something to actually automatically turn on vehicle lights or w/e

SetVehicleParamsEx does not work under the direct OnVehicleSpawn

Here's a good list of bugs also <.<

https://sampforum.blast.hk/showthread.php?tid=151670

pawn Code:
native RestreamBuildingForPlayer(playerid, objectid);
Object collsions?

pawn Code:
ToggleObjectCollision(objectid, bool:toggle);
false for no collision, anything can go through it (players and vehicles), true for.. the obvious

pawn Code:
ToggleVehicleMarker(vehicleid, bool:toggle, color = 0xFFFFFF);
TogglePlayerMarker(vehicleid, bool:toggle, color = 0xFFFFFF);
pawn Code:
RemoveAllDefaultObjects();
For OnGameModeInit maybe? because removing all objects for each player might be a pain on the server, don't you think?


Re: [Suggestions / Bugs] Fix OnVehicleSpawn - beckzy - 29.09.2011

Yes please fix SetVehicleParamsEx not working in OnVehicleSpawn.

And I support having a function to remove all SCM objects. This would be a very useful function and I know a lot of people have requested for it before in the past.


Re: [Suggestions / Bugs] Fix OnVehicleSpawn - MP2 - 29.09.2011

Also AttachTrailerToVehicle doesn't work when you create a vehicle, or if it's streamed out for a player. Such a nightmare. (When it's un-occupied, the trailer isn't 'synced' by any players).