Jump to content

Could someone help me with this script?


GuysTREM

Recommended Posts

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 by GuysTREM
Link to comment

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...