Author Topic: No ChangeDatablock event  (Read 703 times)

I'm hosting a fortwars, and I was wondering if someone could make something so players couldn't use changedatablock

Wouldn't be an event, it would be a server mod.

There are a few Restricted Events mods that allow you to select events to be restricted to/from specific classes (guest, admin, SA).

i think you misread the title, he wasn't asking for a no changedatablock event, he was asking to remove the changedatablock event or disable it
you might be able to overwrite the event and make it do nothing

you could try using this in the console, but it might interfere with other things changing datablocks
function Player::changeDatablock(){}

i think you misread the title

Haha, can't believe I didn't see that.

i think you misread the title, he wasn't asking for a no changedatablock event, he was asking to remove the changedatablock event or disable it
you might be able to overwrite the event and make it do nothing

you could try using this in the console, but it might interfere with other things changing datablocks
function Player::changeDatablock(){}
Yeah, it makes it so the player can jet in a minigame even when his playertype is different.

yeah, thought it might mess with other aspects of the game
the minigame spawning probably uses that function and so it's stuck at being the standard player with jets
what else you could do is try modifying the register event method to check if it's the changedatablock event (might be protected and unable to be modified)
or you could see if there are any extra arguments passed to the function through an event and modify the function from there

Could give this a try: http://forum.returntoblockland.com/dlm/viewFile.php?id=1186
I've heard it doesn't work anymore, though I can't test it and see right now. Might be able to find an alternative or someone who can fix it up if it doesn't work.


unregisteroutputevent(player,changedatablock);