1LoL1

Members
  • Content count

    941
  • Joined

  • Last visited

Community Reputation

4 Neutral

About 1LoL1

  • Rank
    Hoodsta

Recent Profile Visitors

646 profile views
  1. [help] Check If player is in Clan and Add back on login

    function check () local r,g,b if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Forever")) then setPlayerTeam(source, getTeamFromName("FO")) r, g, b = getTeamColor(getTeamFromName("FO")) setPlayerNametagColor(source, r, g, b) end end addEventHandler("onPlayerLogin", getRootElement(), check)
  2. [REL] Mini Admin

    Good Job!
  3. Help! It's simple.

    addEventHandler("onClientPlayerSpawn", getLocalPlayer(), function() setElementHealth(source, getElementHealth(source) - 99) end)
  4. Script doesnt work

    oh i don't think this i mean normal text Example: /sms 1 2 3 4 5 1 2 3 4 5 /sms 1\n2\n3\n4\n5 1 2 3 4 5
  5. Script doesnt work

    Hello, can anyone help me with this? i always must use /sms . text i need /sms text and why i can't use example: /sms text\ntext\ntext ? server-side addCommandHandler("sms", function(player, cmd, sms, ...) newSMS = table.concat({...}, " ") sms = newSMS triggerClientEvent("onSMSTrigger", player, sms) end) client-side local screenW, screenH = guiGetScreenSize() local sms = "" addEvent("onSMSTrigger", true) addEventHandler("onSMSTrigger", getRootElement(), function (newSMS) sms = newSMS end) addEventHandler("onClientRender", getRootElement(), function() dxDrawText(sms, (screenW * 0.2462) + 1, (screenH * 0.6833) + 1, (screenW * 0.8838) + 1, (screenH * 0.9933) + 1, tocolor(0, 0, 0, 255), 2.50, "default-bold", "left", "top", true, true, false, true, false) dxDrawText(sms, screenW * 0.2462, screenH * 0.6833, screenW * 0.8838, screenH * 0.9933, tocolor(255, 255, 255, 255), 2.50, "default-bold", "left", "top", true, true, false, true, false) end)
  6. [Question] Custom events

    use triggerEvent()
  7. unconvertnumber

    Thanks working.
  8. unconvertnumber

    Please can anyone help me with this? i don't know how to unconvertnumber with "$" when it's money = "5,000,000" working but with $ not working.. money = "5,000,000$" function unconvertNumber ( number ) local result = number:gsub ( ",", "" ); return tonumber ( result ); end outputChatBox(unconvertNumber(money))
  9. getPlayerName Nick

    function lalala () for i,v in ipairs (getElementsByType("player")) do outputChatBox(getPlayerName(v)) end end addCommandHandler("players", lalala) here.. how i can delete my name? but others i will see. Works thanks.
  10. getPlayerName Nick

    doesnt work.. its the same what i have..
  11. getPlayerName Nick

    Can anyone help me? it's possible delete my nick of this? for i,v in ipairs (getElementsByType("player")) do guiGridListSetItemText(GUIEditor.gridlist[1], guiGridListAddRow(GUIEditor.gridlist[1]), 1, string.gsub(getPlayerName(v), "#%x%x%x%x%x%x", ""), false, true) end
  12. Login problem

    Always when i login i see message Welcome Back! but when i login with new account i don't see message and i'am not spawned.. Can anyone help me please? function lacc (_, acc) local account = getAccountName(acc) local result = dbQuery (database, "SELECT * FROM SERVER WHERE Account = ?", account) local poll, rows = dbPoll(result, -1) if rows == 1 then if getAccountData(acc, "NewUser") then spawnPlayer(source, x, y, z, 0, 0, 0, 0) outputChatBox("Welcome Back!") else spawnPlayer(source, x, y, z, 0, 0, 0, 0) setAccountData(acc, "NewUser", "NewUser") outputChatBox("Welcome (NewUser)") end end end addEventHandler("onPlayerLogin", getRootElement(), lacc)
  13. [VID]Spidey buisness.

    lol. It's amazing!!!