Hey there,
is it possibly to send a server wide info if someone enter a zone?
I want to realize a "capture the flag" like event and would need an output to inform everyone if people are entering a certain zone (created with zone manager) + the info which zone (the name not the zone id) it was.
I think this would be possible but I am so damn noobish about coding that i can't realize it
![]()
Info on zoneenter
Discussion in 'Rust Development' started by Stefan Red, Apr 6, 2016.
-
Make a timer which checks every x seconds which players are inside the radius of the zone.
-
Calytic Community Admin Community Mod
You can use the OnEnterZone hook provided by ZoneManager to determine when a player enters a zone..
There is an identical hook for the opposite purpose as well, OnExitZoneCode:void OnEnterZone(string zoneid, BasePlayer player) { if(zoneid == "someid") { PrintToChat(player.displayName + " entered some zone"); } } -
Nice, thank you!
Will take a closer look on the zonemanger hooks... hope to find one that make it possible to print the name of the zone also. -
Didnt know ZoneManager had those hooks.
