19.11.2015, 17:07
@valych: No, you don't need a timer. Keep your code from post #447 but move the pawn code away from OnGameModeInit() and create a public function in pawn called OnShoebillInitialized() (don't forget to use forward OnShoebillInitialized()) and in there you will write your code from OnGameModeInit(). In Java, you will call the Pawn public function when you registered all your Java methods:
PHP Code:
eventManagerNode.registerHandler(AmxLoadEvent.class, (e) -> {
e.getAmxInstance().registerFunction(....);
AmxCallable initFunction = e.getAmxInstance().getPublic("OnShoebillInitialized");
if (initFunction != null) {
initFunction.call();
}
});