Jump to content

1LoL1

Members
  • Posts

    944
  • Joined

  • Last visited

Everything posted by 1LoL1

  1. 1LoL1

    onPlayerChat

    What? i want only color team to name. If team color red so nick will red. If i don't have team all was white.
  2. What do you mean Job?
  3. 1LoL1

    onPlayerChat

    Hello, i created chat but if i'am not in team i can't say Can anyone help me? addEventHandler('onPlayerChat', getRootElement(), function(msg, type) if type == 0 then cancelEvent() local name = getPlayerName(source) local team = getPlayerTeam(source) local r, g, b = getTeamColor(team) local hex = string.format("#%.2X%.2X%.2X", r, g, b) if (hex) == "255, 255, 255" then outputChatBox(""..hex..name.. ": #FFFFFF"..msg, getRootElement(), r, g, b, true) else outputChatBox(""..hex..name.. ": #FFFFFF"..msg, getRootElement(), r, g, b, true) end end end )
  4. What you mean Job? post the script.
  5. 1LoL1

    Rank emblem

    exports.scoreboard:addScoreboardColumn('Rank') function scoreLevel () local account = getPlayerAccount(source) local level = getElementData(source, "player.level") if isGuestAccount(account) then setElementData(source, "Rank", "ranks/guest.png") --Show the image for guest players else setElementData(source, "Rank", tostring("Rank_"..level..".png" )) --Show the images rank end end addEventHandler("onPlayerLogin", getRootElement(), scoreLevel)
  6. Check the pic for see debugscript errors http://imgur.com/gHkVkT3 local root = getRootElement() function localMessage (thePlayer, cmd, ...) local message = table.concat({ ... }, " ") local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(thePlayer) local r, g, b = getPlayerNametagColor(thePlayer) local hex = string.format("#%.2X%.2X%.2X", r, g, b) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("(Local) "..hex..name..": #ffffff" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("(Local) "..hex..name..": #ffffff" .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, localMessage)
  7. And what not work? In my server when i take this marker i have + 5,000$. And blip + marker is destroyed.
  8. In my server this code working perfect. here you used your own x, y, z? markerlocation1 = createMarker (x,y,z, "cylinder", 4, 238, 44, 44, 255)
  9. Wrong section . And you searching for a paid scripter?
  10. Try this: Client: markerlocation1 = createMarker (x,y,z, "cylinder", 4, 238, 44, 44, 255) blipLS = createBlipAttachedTo (markerlocation1, 51) addEvent("Pay", true) addEventHandler("onClientMarkerHit", markerlocation1, function (hitPlayer, d) if isElement(markerlocation1) then destroyElement(markerlocation1) destroyElement(blipLS) triggerServerEvent("Pay", hitPlayer, localPlayer) end end) Server: addEvent("Pay", true) addEventHandler("Pay", getRootElement(), function (hitPlayer, d) givePlayerMoney(hitPlayer, 5000) end)
  11. Why? I do not want to show things that I have on the server. To see Give me skype.
  12. Thanks but I have done it myself
  13. Hello, i edited scoreboard and added Country and Image in one column. now it's and i see " AR" but i need to: "AR " local imageX = (dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont )-s(4))*1.4 dxDrawImage(topX+theX+s(1), y+s(1.9), imageX,dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont )-s(4),countryString,0,0,0,tocolor(255,255,255,a or 255)) dxDrawText( countryName, topX+theX+s(6)+imageX, y+s(1), topX+x+s(1+column.width), y+s(11)+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( 0, 0, 0, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) dxDrawText( countryName, topX+theX+s(5)+imageX, y, topX+x+s(column.width), y+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( r or 255, g or 255, b or 255, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) else
  14. function onPlayerQuit () local playeraccount = getPlayerAccount(source) if (playeraccount) and not isGuestAccount (playeraccount) then local playerstats = getPedStat (source) setAccountData (playeraccount, "save-stats", playerstats) -- save it in his account end end function onPlayerLogin (_, playeraccount) local playerAccount = getPlayerAccount(source) if (playeraccount) then local stats = getAccountData (playerAccount, "save-stats") if (stats) then setPedStat(source, stats) end end end addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuit) addEventHandler("onPlayerLogin", getRootElement(), onPlayerLogin) localPlayer in server-side?
  15. 1LoL1

    [HELP] Please

    I have save on this. When player is kicked so he get + 1x "DATA" but i don't know how to define permanent ban and normally ban.
  16. I think this is not possible. Possible is disable old chat "T" and create new but with [Local].
  17. Because no one can see it so i decide to creat new topic Any one can fixe it ? However, this topic see everyone so you do not write s.h.i.t anyone help? Whereas it is right first.
  18. Stop spaming with anyone help.. wtf in 2:12 you said where is problem and in 2:18 you said anyone help? you are really retard.
  19. Why you create new topic? This is in your old topic..
  20. He get to you examples. So he helped to you.
  21. 1LoL1

    [HELP] Please

    Anyone help please? function Bans (banPointer, responsibleElement) local player = source local bt = getBanTime(banPointer) if not bt then setElementData(player, "Pbans", (getElementData(player, "Pbans") or 0) + 1) elseif bt then setElementData(player, "Bans", (getElementData(player, "Bans") or 0) + 1) end end addEventHandler("onPlayerBan", getRootElement(), Bans)
  22. I think you can use /reconnect only in "T". In local chat you can use kickPlayer. If i'am wrong so sorry.
  23. nope. I guess i did my best, you have to wait someone then. Wtf man stop post here if you don't know how you can help him. Your is best hahahaha your code is wrong and is best?
×
×
  • Create New...