
1LoL1
Members-
Posts
944 -
Joined
-
Last visited
Recent Profile Visitors
1,967 profile views
1LoL1's Achievements

Hoodsta (34/54)
4
Reputation
-
Hello, please can anyone help me how i can get more players with stats in gridlist? i always get only one player.. function stats (stat1, stat2, stat3) guiGridListClear(stattab) guiGridListAddRow(stattab) guiGridListSetItemText(stattab, 0, 1, stat1[1], false, false) guiGridListSetItemText(stattab, 0, 2, stat2[1], false, false) guiGridListSetItemText(stattab, 0, 3, stat3[1], false, false) end addEvent("stats", true) addEventHandler("stats", getRootElement(), stats) function stats2 () local stat1 = {} local stat2 = {} local stat3 = {} local result = dbQuery(database,"SELECT * FROM stats") local poll = dbPoll(result, -1) for i,v in ipairs(poll) do table.insert(stat1, v["stat1"]) table.insert(stat2, v["stat2"]) table.insert(stat3, v["stat3"]) end triggerClientEvent(source, "stats", source, stat1, stat2, stat3) end addEvent("stats2", true) addEventHandler("stats2", getRootElement(), stats2)
-
Hello, how i can takeWeapon when i deactivate nightvision? is there function for this or its not possible?
-
How i can show text in dxDrawText? i always get nil local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", getRootElement(), function(text) local text2 = (getElementData(localPlayer, "text") or 0) if (text2 >= 0) and (text2 <= 3999) then text = 10 elseif (text2 >= 4000) and (text2 <= 5999) then text = 35 elseif (text2 >= 6000) and (text2 <= 10000000) then text = 70 end dxDrawText(text, screenW * 0.0638, screenH * 0.3317, screenW * 0.3200, screenH * 0.3550, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end)
-
ok this works thanks for help function TST(player, command, accountName) local account = getAccount(accountName) if account then local player = getAccountPlayer(account) if player then
-
Unable to get account @ TST:account, got "boolean" i used /tst noob and this error example: LOL = online ShayF = offline /tst LOL work /tst ShayF then nothing because account is not on on the server
-
my acc: LOL if i use /tst LOL its working but when i use /tst LOL5666 etc.. i have warning.. function TST(player, command, accountName) local account = getAccount(accountName) local player = getAccountPlayer(account) if player then Bad argument @ 'getAccountPlayer' [Expected account at argument 1, got boolean] How to check account if exist? Please help me anyone
-
[help] Check If player is in Clan and Add back on login
1LoL1 replied to TheGrimReaper's topic in Scripting
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) -
-
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
-
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)