Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AmxLoad_delay( AMX *amx );
- PLUGIN_EXPORT int PLUGIN_CALL AmxLoad( AMX *amx )
- {
- std::shared_ptr<void*> ptr(nullptr, [](void*){AmxLoad_delay(amx); });
- return amx_Register( amx, Natives::AMXNatives, -1 );
- }
- void AmxLoad_delay( AMX *amx )
- {
- Callbacks temp;
- if (!amx_FindPublic(amx, "OnPlayerClosestNodeIDChange", &temp.ClosestNodeIDChange.POINTER))
- {
- temp.ClosestNodeIDChange.PublicFound = true;
- }
- if (!amx_FindPublic(amx, "GPS_WhenRouteIsCalculated", &temp.GPSRouteCalculated.POINTER))
- {
- temp.GPSRouteCalculated.PublicFound = true;
- }
- rcp_amxinfo.insert(std::pair<AMX*,Callbacks>(amx,temp));
- }
Advertisement
Add Comment
Please, Sign In to add comment