Jump to content

Command help me


[SR]mR.EmiN

Recommended Posts

Posted
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]

Posted

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.

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