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=0You 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?
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