GuysTREM Posted January 27, 2019 Share Posted January 27, 2019 (edited) I'm having trouble understanding the code I type / level the nick and the amount xp more does not work the code if someone could help me thank you Code function DAR_XP_AIRNEWSCR (source, cmd, pname, Quantity) if pname and tonumber then local client = getPlayerFromPartialName (pname) if isElement (client) then if getElementData (source, "Console_AirNewSCR") == "Yes" then setElementData (client, "Level", Quantity) exports.Scripts_Dxmessages: outputDx (source, "You Set the Player's Level" ..getPlayerName (client) .. "# ffffff for" ..Quantity .. "Success!", "success") exports.Scripts_Dxmessages: outputDx (client, "O (A) Admin" ..getPlayerName (source) .. "# ffffff Set your Level to" ..Quantity .. "Success!", "success") end else exports.Scripts_Dxmessages: outputDx (source, "The Player Was Not Found", "error") end end end addCommandHandler ("level", DAR_XP_AIRNEWSCR) Edited January 27, 2019 by GuysTREM Link to comment
DNL291 Posted January 27, 2019 Share Posted January 27, 2019 Note: This has already been resolved here: 1 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