golanu21 Posted December 13, 2013 Share Posted December 13, 2013 function onquit () triggerServerEvent("onQuit", localPlayer) end addEventHandler("onClientPlayerQuit", getRootElement(), onquit) function onQUIT ( timer ) outputDebugString("coie") end addEvent( "onQuit", true ) addEventHandler( "onQuit", root, onQUIT ) why when i quit. the debugstring not appear Link to comment
Castillo Posted December 13, 2013 Share Posted December 13, 2013 Why are you using a trigger when you can simply use onPlayerQuit? Link to comment
Desaster Posted December 13, 2013 Share Posted December 13, 2013 In think he is testing the triggering hmmm try to remove (timer) Link to comment
TAPL Posted December 14, 2013 Share Posted December 14, 2013 why when i quit. the debugstring not appear https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit This event is triggered when a remote player quits the game or leaves the server. It will not get triggered on the source player's client. If you was alone in the server, it wont get trigger, if there another players in the server the event will trigger as the number of players (more than once). 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