Snoozy Posted June 1, 2011 Posted June 1, 2011 Is it possible to make players unable to change to any radio channel in their vehicles?
Castillo Posted June 1, 2011 Posted June 1, 2011 Try with this ( client side ): addEventHandler("onClientPlayerRadioSwitch", getLocalPlayer(), function () cancelEvent() end)
Snoozy Posted June 1, 2011 Author Posted June 1, 2011 Yea okay that works tho it seems that it also blocks the setRadioChannel which is needed to be used at start to set their channel to 0 else it will be 1
karlis Posted June 2, 2011 Posted June 2, 2011 both "onClientVehicleEnter" if source is localplayer and "onClientPlayerRadioSwitch" just set radio to id0. although i'd advise to just set it to 0 when entering, so if someone wants it, he still can turn it on.
Callum Posted June 2, 2011 Posted June 2, 2011 @SolidSnake, or simply; addEventHandler("onClientPlayerRadioSwitch",getLocalPlayer(),cancelEvent)
Castillo Posted June 3, 2011 Posted June 3, 2011 Indeed Callum, but it would be the same, just less code lines.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now