MRThinker Posted July 29, 2018 Posted July 29, 2018 hiiiii my give xp system : function giveXP ( player, cmd, xp) givePlayerXP (player, xp) end addCommandHandler ("xp", giveXP) plz give me a server side for give xp to all online players. like : /xpall <number> example i type /xpall 3 and send pm for all online players. [XP-System] Admin MrThinker given 3 xp to all players! thanks and plz give me a server side for give xp to target player! like /xp <PlayerID> <XpNumber> i type /givexp 2 50 and send message for target player admin MrThinker given you 50 Xp point thanks! 3 minutes ago, MRThinker said: hiiiii my give xp system : function giveXP ( player, cmd, xp) givePlayerXP (player, xp) end addCommandHandler ("xp", giveXP) plz give me a server side for give xp to all online players. like : /xpall <number> example i type /xpall 3>
MRThinker Posted July 29, 2018 Author Posted July 29, 2018 18 minutes ago, Dimos7 said: We here to help you with your code not make it @Dimos7 plzz
MRThinker Posted July 29, 2018 Author Posted July 29, 2018 1 hour ago, #َxLysandeR said: at least try and show us your attempt
SycroX Posted July 29, 2018 Posted July 29, 2018 ooh boy function giveALLXP(player, _, xp) for _,player in ipairs(getElementsByType("player")) do givePlayerXP(player, tonumber(xp)) end end addCommandHandler ("xpall", giveXP) function giveXP(player, _, to, xp) if to and xp then local p = getPlayerFromName(to) if p then givePlayerXP(p, tonumber(xp)) end end end addCommandHandler("xp", giveXP)
MRThinker Posted July 29, 2018 Author Posted July 29, 2018 59 minutes ago, #َxLysandeR said: ooh boy function giveALLXP(player, _, xp) for _,player in ipairs(getElementsByType("player")) do givePlayerXP(player, tonumber(xp)) end end addCommandHandler ("xpall", giveXP) function giveXP(player, _, to, xp) if to and xp then local p = getPlayerFromName(to) if p then givePlayerXP(p, tonumber(xp)) end end end addCommandHandler("xp", giveXP) thanks, well done
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