09.05.2018, 17:31
Quote:
Great job tho! but how about custom objects? what happens when add model RPC is sent and what happens to custom objects in RPC_CreateObject?
EDIT : You must spread some Reputation around before giving it to AdrianGraber again. |
Custom objects spawn with the ? model, as SA-MP already handles invalid model IDs that way. I'm thinking of adding support to use base IDs for them, but it would require some checking for every AddModel RPC which may impact performance, as SA-MP doesn't have any methods of retrieving the base ID (unless it gets retrieved with some plugin), and hooking AddSimpleModel the PAWN way wouldn't work with filterscripts or models added through the .txt file.