Author Topic: Events blacklist  (Read 695 times)

There's already an add-on out there by destiny that makes every single event admin-only, but what I want is to restrict only certain events, like adding score and changing datablock. Does something like this already exist or does it need to be made?

Headcrab Zombie made a support_adminEvents file where you can make w/e even you want admin only. Pretty easy to use too.
https://www.dropbox.com/s/l8ycg44dgn3q558/Support_AdminEvents.cs?dl=0
You simply place it in the event add-on folder, then at the start of the file you add exec("./suppor_AdminEvents.cs"); and to make an event admin only you will also need to add registerAdminOnlyOutputEvent("target","event",admin level);

A simple example would be:
Code: [Select]
exec("./Support_AdminEvents.cs");

registerOutputEvent("fxDtsBrick","Thor_sky","string 8 50");

registerAdminOnlyOutputEvent("fxDtsBrick","Thor_sky",2);

function fxDtsBrick::Thor_sky(%this,%choice)
{
EnvGui::SetSky(EnvGui,%choice);
}

Headcrab Zombie made a support_adminEvents file where you can make w/e even you want admin only. Pretty easy to use too.
https://www.dropbox.com/s/l8ycg44dgn3q558/Support_AdminEvents.cs?dl=0
You simply place it in the event add-on folder, then at the start of the file you add exec("./suppor_AdminEvents.cs"); and to make an event admin only you will also need to add registerAdminOnlyOutputEvent("target","event",admin level);

A simple example would be:
Code: [Select]
exec("./Support_AdminEvents.cs");

registerOutputEvent("fxDtsBrick","Thor_sky","string 8 50");

registerAdminOnlyOutputEvent("fxDtsBrick","Thor_sky",2);

function fxDtsBrick::Thor_sky(%this,%choice)
{
EnvGui::SetSky(EnvGui,%choice);
}
But what about default events?

But what about default events?
So long as the support file get executed at some point or another, you can even make your own event add-on and just use that to add admin only to events. Any event that messes with a brick will always be fxDtsBrick players should be Armor Player and clients should be gameConnection iirc
« Last Edit: September 07, 2014, 09:34:30 PM by Thorfin25 »

So long as the support file get executed at some point or another, you can even make your own event add-on and just use that to add admin only to events. Any event that messes with a brick will always be fxDtsBrick players should be Armor and clients should be gameConnection iirc
No. Player is Player.