22.03.2015, 15:10
Quote:
Been doing some testing with this. Some additional questions:
How to handle dialogs inline, such as implementing the response logic in the relevant classes? I tried spawning the player manually using this.spawn() in the Player class when the login would be successful. In Pawn, i used to return 0 on OnPlayerRequestClass. What would be the preffered way in Sharp, since the manual spawn does not work. |
Код:
var dialog = new Dialog(...); dialog.Response += (sender, args) { // handle response };
For the other question,
Set PreventSpawning to true
https://github.com/ikkentim/SampShar...entArgs.cs#L43
https://github.com/ikkentim/SampShar...Player.cs#L585