Jump to content

Command help me


[SR]mR.EmiN

Recommended Posts

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

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