1LoL1 Posted October 10, 2015 Author Posted October 10, 2015 function poop () setElementData(source, "ttt", (getElementData(source, "ttt") or 0) + 1) setElementData(source, "ttt", (getElementData(source, "ttt") or 0) + 0) end addEventHandler("onPlayerMute", getRootElement(),poop) addEventHandler("onPlayerUnMute", getRootElement(),poop) try that i'm not sure about it work or no this will when player muted +1 ttt and +0 ttt | unmuted +1 ttt and +0 ttt
xeon17 Posted October 10, 2015 Posted October 10, 2015 I'm wrong or nobody here understand you? Please explain your problem and improve your English skills.
1LoL1 Posted October 10, 2015 Author Posted October 10, 2015 I'm wrong or nobody here understand you? Please explain your problem and improve your English skills. Player muted he get 1x ttt but when i unmuted player he get 1x ttt too and this i don't want i want only "When player muted he get 1x ttt"
HUNGRY:3 Posted October 10, 2015 Posted October 10, 2015 i really don't understand function mute () setElementData(source, "ttt", getElementData(source, "ttt")+ 1) end addEventHandler("onPlayerMute", root, mute) function unmute() setElementData(source, "ttt",getElementData(source, "ttt")- 1) end addEventHandler("onPlayerUnmute", root, unmute)
1LoL1 Posted October 10, 2015 Author Posted October 10, 2015 i really don't understand function mute () setElementData(source, "ttt", getElementData(source, "ttt")+ 1) end addEventHandler("onPlayerMute", root, mute) function unmute() setElementData(source, "ttt",getElementData(source, "ttt")- 1) end addEventHandler("onPlayerUnmute", root, unmute) i mean this omg -________________________- function ttt () setElementData(source, "ttt", getElementData(source, "ttt") + 1) end addEventHandler("onPlayerMute", getRootElement(), ttt) this work but when i unmuted player he get too 1x ttt and i want only when player muted so i know this is wrong but i want this if addEventHandler("onPlayerUnmute", getRootElement(), ttt) then cancelEvent() so i must use? removeEventHandler
HUNGRY:3 Posted October 10, 2015 Posted October 10, 2015 As i understand you mean if the muted player has ttt he can't get un muted ?
1LoL1 Posted October 10, 2015 Author Posted October 10, 2015 As i understand you mean if the muted player has ttt he can't get un muted ? Not. Now it works is that when a player gets mute so gets 1 ttt and when I give him so unmute gets 1 ttt .. and also I want this: When a player gets mute so one gets ttt and when I give him unmute so nothing will happen only when you receive mute so gets 1 ttt
Aristates Posted October 16, 2015 Posted October 16, 2015 view topic. https://forum.multitheftauto.com/viewtopic.php?f=91&t=44715
1LoL1 Posted October 16, 2015 Author Posted October 16, 2015 view topic. https://forum.multitheftauto.com/viewtopic.php?f=91&t=44715 What? i don't want own mute i want this what i say.
HUNGRY:3 Posted October 24, 2015 Posted October 24, 2015 Please any help? How do you want us to help we don't even understand your problem
TAPL Posted October 24, 2015 Posted October 24, 2015 This issue from admin panel as it trigger event onPlayerMute, however this issue was fixed on latest admin panel, download latest mta resource from HERE.
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