joaosilva099 Posted September 12, 2014 Share Posted September 12, 2014 (edited) Hi all. My problem is that onClientResourceStop doesn't trigger qhen the player quits... i tested to stop the resource ad it gget triggered but when he quits not Edited September 15, 2014 by Guest Link to comment
darhal Posted September 12, 2014 Share Posted September 12, 2014 Use onClientPlayerQuit Link to comment
joaosilva099 Posted September 12, 2014 Author Share Posted September 12, 2014 but i want to trigger to the player who quits and that event only triggers on the players who dont quitted Link to comment
Gr0x Posted September 12, 2014 Share Posted September 12, 2014 onClientResourceStop does trigger, but it passes a remote player element, so you have to set the second argument of addEvent to true if you pass it to the server, like this addEvent("potato",true) Link to comment
joaosilva099 Posted September 12, 2014 Author Share Posted September 12, 2014 you say that i need to set true the server event which i trigger to serverside when the client resouce stops? its done and still dont work Link to comment
Gr0x Posted September 12, 2014 Share Posted September 12, 2014 Then you failed something, show me your code. Link to comment
darhal Posted September 12, 2014 Share Posted September 12, 2014 Use onClientPlayerQuit and the player who quit is source not localPlayer Link to comment
joaosilva099 Posted September 12, 2014 Author Share Posted September 12, 2014 Man i know but the problem is the event onClientPlayerQuit doesn't get triggered to the player who quitted!!! Link to comment
joaosilva099 Posted September 12, 2014 Author Share Posted September 12, 2014 (edited) CODE REMOVED Edited September 15, 2014 by Guest Link to comment
Gr0x Posted September 12, 2014 Share Posted September 12, 2014 Doesn't it say any error about line 126? I'm not sure about that one. Have a look at the log and check it please. Link to comment
joaosilva099 Posted September 12, 2014 Author Share Posted September 12, 2014 no errors on debugscript and not in server log Link to comment
darhal Posted September 12, 2014 Share Posted September 12, 2014 Nop isn't a player !!!!! Link to comment
joaosilva099 Posted September 12, 2014 Author Share Posted September 12, 2014 check the code man!! if(thePlayer == "nop")then code = true else code = isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) end Link to comment
darhal Posted September 12, 2014 Share Posted September 12, 2014 Set the data of the player on time deacrising and get this data when the player quit server sided Link to comment
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