Dinossauro Posted September 11, 2012 Share Posted September 11, 2012 Hello A user, Twix!, Made a script that works the way then. Players write: / exit and 5 seconds later come out! function KickPlayer(thePlayer,reason) kickPlayer ( thePlayer, "Console", reason ) end function kickPlayerHandler ( sourcePlayer, commandname, kickedname, reason ) local reason = "You came out successfully." outputChatBox ( "You will leave the server, in 5 seconds" ) setTimer ( KickPlayer, 5000, 1, sourcePlayer,reason ) end addCommandHandler ( "exit", kickPlayerHandler) So I wanted someone writing / exit, munitions weapons were stored. And who wrote / reconnect and / quit, did not have the ammunition stored. Help me! Link to comment
Callum Posted September 11, 2012 Share Posted September 11, 2012 Just a note, you should use an isElement check on 'thePlayer' in the KickPlayer function. You will get errors if you begin the timer and then the player quits. Link to comment
Dinossauro Posted September 11, 2012 Author Share Posted September 11, 2012 Ok, could help me the rest? Link to comment
Anderl Posted September 11, 2012 Share Posted September 11, 2012 Why two posts? Can't you just ask in the same topic? Link to comment
TwiX! Posted September 11, 2012 Share Posted September 11, 2012 @No one will not make code for you We can only fix your script Link to comment
Dinossauro Posted September 11, 2012 Author Share Posted September 11, 2012 They can then tell you how I do it? Tell me what I need to use to do this, thanks. 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