micheal1230 Posted June 4, 2012 Share Posted June 4, 2012 Bad Argument at Line 5 @ setGameSpeed function maxpayne(thePlayer, command) if getGameSpeed == 1 then setGameSpeed(thePlayer, 0.5) outputChatBox("Max Payne Mode On", thePlayer) else setGameSpeed(thePlayer, 1) outputChatBox("Max Payne Mode Off", thePlayer) end end addCommandHandler("maxpayne", maxpayne) Link to comment
Vision Posted June 4, 2012 Share Posted June 4, 2012 function maxpayne(thePlayer, command) if getGameSpeed() == 1 then setGameSpeed(0.5) outputChatBox("Max Payne Mode On", thePlayer) else setGameSpeed(1) outputChatBox("Max Payne Mode Off", thePlayer) end end addCommandHandler("maxpayne", maxpayne) Link to comment
micheal1230 Posted June 4, 2012 Author Share Posted June 4, 2012 function maxpayne(thePlayer, command) if getGameSpeed() == 1 then setGameSpeed(0.5) outputChatBox("Max Payne Mode On", thePlayer) else setGameSpeed(1) outputChatBox("Max Payne Mode Off", thePlayer) end end addCommandHandler("maxpayne", maxpayne) Mate that enables it for everyone Link to comment
Stanley Sathler Posted June 5, 2012 Share Posted June 5, 2012 The function setGameSpeed() does not accept another value beyond of speed. If you don't wanna set the game speed to everyone, create the script as client-side. 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