[SR]mR.EmiN Posted February 2, 2011 Share Posted February 2, 2011 addEventHandler("onPlayerChat",getRootElement(), function(message,type) if message == "!points" or gettok(message, 1, string.byte(' ')) == "!points" then local target = getPlayerFromName(gettok(message, 2, string.byte(' '))) or source local playerPoints = loadPlayerData (target,"points") setTimer(outputChatBox,50,1,getPlayerName (target) .. " #FF0000has " .. tostring(playerPoints) .. " points!",getRootElement(),255,0,0,true) end end) This command need full name but i need shortname.This command need !points [sR]mR.EmiN:( but i need !points emin command help me [sry my english bad] Link to comment
SDK Posted February 2, 2011 Share Posted February 2, 2011 This isn't a request forum, try copying some function from another resource that doesn't need full names (like the admin resource). Then try to integrate it in your script and come back if it doesn't work. 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