Jump to content

help with script


UserAccount3

Recommended Posts

Posted

hello! i wanna know how to prevent playeer from leaving the server.

i ryed this code but no work:

function onLeave(player) 
cancelEvent() 
end 
addEventHandler("onPlayerQuit", onLeave) 

Posted

Well first xD they can leave with quitting mta second i dont see anything wrong but onplayerquit is triggered to late i think

anyway i have never tried this search a bit around herer i remeber i saw it

Posted

You can't cancel this event, this would be highly stupid, why would you cancel him from quitting? you don't have enough players and you want to keep them even if they don't like the server? that's what I think.

Posted

Well and if it was possible it would get reported as abuse i guess ...

Anyway instead of scripting that try to script something they like and maybe they will stay ...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...