-
Posts
732 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Bean666
-
brutus here is a script by Cyan , local chat script . i want this as T And if he writes a message and enters it shows local and when chatting i wanna remove the "Local:" and replace to "say:" because i cant do commands with it. i did bind u as t , but i cant do commands with it , is there anyway i can do commands with it? chat_range=100 addEventHandler("onPlayerJoin",getRootElement(), function () bindKey(source,"u","down","chatbox","Local") end) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"u","down","chatbox","Local") end end) function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end function onChat(player,_,...) local px,py,pz=getElementPosition(player) local msg = table.concat({...}, " ") local nick=getPlayerName(player) local r,g,b = getTeamColor(getPlayerTeam(player)) for _,v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v,px,py,pz,chat_range) then outputChatBox("(Local) "..nick..": "..msg,v,r,g,b,true) end end end addCommandHandler("Local",onChat)
-
hi i need help , when a player press T and writes a message , it shows Local , but i dont mean by The BINDS . i just want it as RP when a player press T. it shows say , but if he writes down a message and press enter it shows as local and functions as local. so i can do some commands with it any help appreciated!
-
any help? ;c or if any of u guys can give me a new EXP_System? any help would be appreciated
-
help me guys , its all working fine when i reach Level 5 , but when i added Level 6 or above , once i reach level 5 , and i had the experienced requirements to lvl 6 , it doesnt rank up anymore. i use exp_system of castillo. Exp Script: local rootElement = getRootElement() levels = {} levels[1] = {"Level 1", "100"} levels[2] = {"Level 2", "200"} levels[3] = {"Level 3", "300"} levels[4] = {"Level 4", "500"} levels[5] = {"Level 5", "1000"} levels[6] = {"Level 6", "2000"} function ResourceStart () executeSQLCreateTable("levels", "accountname STRING, level INT") end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), ResourceStart) function addPlayer() local account = getPlayerAccount(source) local playername = getPlayerName(source) CheckPlayer = executeSQLSelect ( "levels", "accountname", "accountname = '" .. getAccountName(account) .. "'" ) if ( type( CheckPlayer ) == "table" and #CheckPlayer == 0 ) or not CheckPlayer then executeSQLInsert ( "levels", "'".. getAccountName(account) .."','0'" ) end end addEventHandler("onPlayerLogin",rootElement,addPlayer) addEventHandler( "onElementDataChange", rootElement, function () if getElementType(source) == "player" then local acc = getPlayerAccount(source) local accountname = getAccountName(acc) local playername = getPlayerName(source) local data = getElementData(source,"exp") local sqldata = executeSQLSelect ( "levels", "level","accountname = '" .. accountname .. "'") lvl = sqldata[1]["level"] if tostring(data) == tostring(levels[lvl][2]) then outputChatBox("*Level system: congratulations ".. playername .." you're now a ".. levels[lvl][1] .."!",getRootElement(),0,255,0) local textDis = textCreateDisplay () local item = textCreateTextItem( "LEVEL UP! YOU'RE NOW LEVEL ".. tostring(sqldata[1]["level"]), 0.5, 0.4, 2, 0, 255, 0, 255, 4, "center", "center" ) textDisplayAddText ( textDis, item ) textDisplayAddObserver ( textDis, source ) setTimer ( textDestroyTextItem, 5000, 1, item ) setTimer ( textDestroyDisplay, 5000, 1, textDis ) sql = tonumber(sqldata[1]["level"]) + 1 executeSQLUpdate("levels", "level = '".. sql .."'", "accountname = '".. accountname .."'") end end end) function rewardOnWasted ( killer ) local exp = getElementData(killer,"exp") if exp then setElementData(killer,"exp",tonumber(getElementData(killer,"exp"))+25) outputChatBox("Experience gained +25! total ".. tonumber(exp)+25,killer,0,255,0) else setElementData(killer,"exp",25) end end addEvent("onZombieWasted",true) addEventHandler ( "onZombieWasted", getRootElement(), rewardOnWasted ) Levels.xml in exp_system of castillo <levels> <level name = "Level 1" experienceRequired = "100" /> <level name = "Level 2" experienceRequired = "200" /> <level name = "Level 3" experienceRequired = "300" /> <level name = "Level 4" experienceRequired = "500" /> <level name = "Level 5" experienceRequired = "1000" /> <level name = "Level 6" experienceRequired = "2000" /> </levels>
-
yes , if a player logs in , it wont show up . and if resource started , it wont show up automatically. i want my gui can be shown up manually , only by pressing F1.
-
Thank u @Labivila it works now but is it possible that when i login , it doesnt show up? or if i start resource? because when i remove addeventhandler onresource start , it doesnt work
-
doesnt work when i press F2 , GUi doesnt appear anymore.
-
Hi guys , i have my GUI panel and when i press F2 it works! but it doesnt show the mouse cursor! and i need help is there anyway that the cursor will showup? GUIEditor = { tab = {}, window = {}, tabpanel = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(356, 169, 536, 401, "Paranoia Server Information", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.77) GUIEditor.tabpanel[1] = guiCreateTabPanel(12, -158, 274, 15, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Tab", GUIEditor.tabpanel[1]) GUIEditor.tabpanel[2] = guiCreateTabPanel(9, 20, 517, 371, false, GUIEditor.window[1]) GUIEditor.tab[2] = guiCreateTab("Paranoia", GUIEditor.tabpanel[2]) GUIEditor.memo[1] = guiCreateMemo(12, 11, 495, 326, "Paranoia is a zombie server and semi-rp and it is a server to let people enjoy the scripts ,etcs and Paranoia is based on Surviving , Fighting against the zombies and other teams. and Hope u guys Enjoy!", false, GUIEditor.tab[2]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.tab[3] = guiCreateTab("Rules", GUIEditor.tabpanel[2]) GUIEditor.memo[2] = guiCreateMemo(14, 12, 493, 325, "Paranoia Rules:\n1. Do Not Ask For Staff Rank!\n2. Do Not Ask For Money\n3. Do Not Insult/Flame\n4. No Multi Accounting\n5. No Advertising Other Servers\n6. Stop Annoying Staffs\n7. No Deathmatching\n8. No Trolling!\n9. Do Not Helikill / Carkill!\n10. Do Not Spam the Chat!", false, GUIEditor.tab[3]) guiMemoSetReadOnly(GUIEditor.memo[2], true) GUIEditor.tab[4] = guiCreateTab("Updates", GUIEditor.tabpanel[2]) GUIEditor.memo[3] = guiCreateMemo(14, 11, 493, 326, "Updates:\nN/A", false, GUIEditor.tab[4]) guiMemoSetReadOnly(GUIEditor.memo[3], true) GUIEditor.tab[5] = guiCreateTab("Staff Team", GUIEditor.tabpanel[2]) GUIEditor.memo[4] = guiCreateMemo(12, 12, 495, 325, "Staff Team:\nOwner: Shaman\nHQ Staffs: N/A\nAdmins: N/A\nModerators: N/A\nProbationaries: N/A", false, GUIEditor.tab[5]) guiMemoSetReadOnly(GUIEditor.memo[4], true) end ) function toggleVisible ( ) guiSetVisible ( GUIEditor.window[1] , not guiGetVisible(GUIEditor.window[1]) ) end bindKey( "F2", "down", toggleVisible)
-
nah , i dont want a player can be seen with labels on map , i just want to put labels on map , like I will write , "Military zone" label located in a military base in F11.
-
Is there any way to put Labels on map [F11] ? any help appreciated.
-
same with him , idk much about SQL :C Can u help me with this? :c
-
it transforms to small letters and the caps is still in the chat, the caps i typed it showed up and the small one showed up too ,when it transformed
-
do i need to edit something in here?
-
Is it possible to create an Anti-Caps lock script? well can anyone give me a help here , like if someone uses CAPS , the BIG letters will transform to a small one , i've seen it in other servers , please help , ))
-
really need help ._. its not that easy to watch at the wiki ._.
-
guys im thinking of a perk shop , need help , like if u have lvl 30 in exp system and if u go as lvl 30 in a marker it sets ur health 200 or health stats as 1000 and it sets ur skin different and gives u some weapons.. any help would come?
-
I just need help on creating blips with the color of the player.
-
it's not mine , but i modified it tons harder than it was made the spawn etcs is mine , but the GUI isnt mine just downloaded. so i didnt say either that it is mine.
-
Guys , if i activate my spawn panel , when i spawn , or other players , blips dont appear , any help would come? Code: --Authorities-- aut1 = createTeam ("Marines", 9, 110, 36) aut2 = createTeam ("Navy Seals", 25, 65, 201) aut3 = createTeam ("Silenced Seal", 25, 65, 201) aut4 = createTeam ("Squad141", 245, 160, 15) --Civilians-- civ1 = createTeam ("Civillians", 228, 252, 14) --Gangs-- --redvsblue-- --gang privates-- clan1 = createTeam ("USRT", 16, 81, 98) clan2 = createTeam ("Bloodbath and Beyond", 147, 2, 2) clan3 = createTeam ("Party Squad", 0, 230, 255) --Staff Team-- adminP = createTeam ("Staff Team", 26, 152, 182) --terrorist-- rebels = createTeam ("Terrorists", 163,153,51) srebel = createTeam ("Silenced Rebel", 163,153,51) --fun classes-- fcl = createTeam ("Fun Classes", 120,35,35) bwc = createTeam ("Blackwatch.Inc", 100,100,100) function spawnMarines (prevA, curA, spawn) spawnPlayer (source, 214.248046875, 1866.96875, 13.140625, 4.44677734375, 287, 0, 0, aut1) -- spawns player with random skin fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 150) giveWeapon ( source, 25, 99) giveWeapon ( source, 31, 1300) end addEvent( "spawnMarines", true ) addEventHandler( "spawnMarines", root, spawnMarines ) function spawnNavy (prevA, curA, spawn) -- spawnPlayer (source, -1347.703125, 494.3017578125, 18.227842330933, 356.9045715332, 285, 0, 0, aut2) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 150) giveWeapon ( source, 25, 99) giveWeapon ( source, 31, 900) end addEvent( "spawnNavy", true ) -- addEventHandler( "spawnNavy", root, spawnNavy ) -- function spawnssniper (prevA, curA, spawn) -- spawnPlayer (source, -1347.703125, 494.3017578125, 18.227842330933, 356.9045715332, 286, 0, 0, aut3) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 4, 1) giveWeapon ( source, 44, 70) giveWeapon ( source, 25, 80) giveWeapon ( source, 29, 130) giveWeapon ( source, 34, 1000) end addEvent( "spawnssniper", true ) -- addEventHandler( "spawnssniper", root, spawnssniper ) -- function spawns141 (prevA, curA, spawn) -- spawnPlayer (source, -2516.892578125, -620.55859375, 132.71688842773, 1.0739440917969, 284, 0, 0, aut4) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 1300) giveWeapon ( source, 31, 1300) end addEvent( "spawns141", true ) -- addEventHandler( "spawns141", root, spawns141 ) -- --Civilians-- function spawncivi (prevA, curA, spawn) -- spawnPlayer (source, 2589.5673828125, 2295.3046875, 10.8203125, 175.04510498047, 101, 0, 0, civ1) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 2, 1) giveWeapon ( source, 22, 133) giveWeapon ( source, 25, 250) end addEvent( "spawncivi", true ) -- addEventHandler( "spawncivi", root, spawncivi ) -- function spawnrebels (prevA, curA, spawn) -- spawnPlayer (source, 1112.1708984375, -1187.06640625, 18.343454360962, 87.460754394531, 47, 0, 0, rebels) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 9, 1) giveWeapon ( source, 22, 133) giveWeapon ( source, 25, 100) giveWeapon ( source, 30, 1000) end addEvent( "spawnrebels", true ) -- addEventHandler( "spawnrebels", root, spawnrebels ) function spawnsrebel (prevA, curA, spawn) -- spawnPlayer (source, 1112.1708984375, -1187.06640625, 18.343454360962, 87.460754394531, 47, 0, 0, srebel) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 4, 1) giveWeapon ( source, 34, 1000) giveWeapon ( source, 23, 100) end addEvent( "spawnsrebel", true ) -- addEventHandler( "spawnsrebel", root, spawnsrebel ) --Gangs-- --red vs blue-- --Gang Privates-- function spawnpeF (prevA, curA, spawn) -- if ( getElementData(source, "gang") == "USRT" ) then spawnPlayer (source, 838.50231933594, 3501.4523925781, 7.8848686218262, 176.67108154297, 282, 0, 0, clan1) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 9000) giveWeapon ( source, 34, 9000) giveWeapon ( source, 31, 9000) giveWeapon ( source, 27, 9000) giveWeapon ( source, 16, 40) giveWeapon ( source, 46, 1) giveWeapon ( source, 29, 9000) else outputChatBox ("you are not in USRT Group!",source, 14, 62, 68) end end addEvent( "spawnpeF", true ) -- addEventHandler( "spawnpeF", root, spawnpeF ) -- function spawnBb (prevA, curA, spawn) -- if ( getElementData(source, "gang") == "B&B" ) then spawnPlayer (source, 2594.0546875, 2808.98046875, 10.8203125, 88.081481933594, 292, 0, 0, clan2) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 5, 1) giveWeapon ( source, 25, 100) giveWeapon ( source, 16, 5) giveWeapon ( source, 31, 600) else outputChatBox ( "you are not in B&B Group!",source, 147, 2, 2 ) end end addEvent( "spawnBb", true ) -- addEventHandler( "spawnBb", root, spawnBb ) -- function spawnPs (prevA, curA, spawn) -- if ( getElementData(source, "gang") == "Partysquad" ) then spawnPlayer (source, 1257.072265625, -794.115234375, 88.3125, 178.81896972656, 7, 0, 0, clan3) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 10, 1) giveWeapon ( source, 29, 500) giveWeapon ( source, 16, 5) giveWeapon ( source, 24, 100) else outputChatBox ( "you are not in Partysquad Group!",source, 0, 230, 255 ) end end addEvent( "spawnPs", true ) -- addEventHandler( "spawnPs", root, spawnPs ) -- function spawnadminP (prevA, curA, spawn) -- local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer (source, 2007.37890625, 2907.80859375, 47.82311630249, 91.619140625, 217, 0, 0, adminP) -- fadeCamera (source, true) setCameraTarget (source, 2066.0576171875, 1253.369140625, 36.72605) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 9000) giveWeapon ( source, 34, 9000) giveWeapon ( source, 31, 9000) giveWeapon ( source, 27, 9000) giveWeapon ( source, 38, 9000) else outputChatBox("You are not in Admin group!",source, 26, 152, 182) end end addEvent( "spawnadminP", true ) -- addEventHandler( "spawnadminP", root, spawnadminP ) -- function spawnfcl (prevA, curA, spawn) -- spawnPlayer (source, -1907.3154296875, -1672.3154296875, 23.015625, 271.44061279297, 20, 0, 0, fcl) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 32, 9999) giveWeapon ( source, 24, 150) giveWeapon ( source, 31, 600) giveWeapon ( source, 34, 150) giveWeapon ( source, 27, 150) end addEvent( "spawnfcl", true ) -- addEventHandler( "spawnfcl", root, spawnfcl ) function spawnbwc (prevA, curA, spawn) -- spawnPlayer (source, 3213.5900878906, -320.54452514648, 7.8867297172546, 143.52484130859, 283, 0, 0, bwc) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 3, 1) giveWeapon ( source, 29, 500) giveWeapon ( source, 31, 600) giveWeapon ( source, 27, 150) end addEvent( "spawnbwc", true ) -- addEventHandler( "spawnbwc", root, spawnbwc ) function setCameraOnPlayerJoin () fadeCamera(source, true, 5) setCameraMatrix(source, 2066.0576171875, 1253.369140625, 36.72605, 2175.0673828125, 1283.69140625, 35.91672134) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin)
-
hi i wanna know how to make this spawn to be ACL? cause i can only make spawn with gangs , i wanna learn how to make it for ACL here is my code and by the way when i press spawn as a private gang and im not in the gang of it , all players see the output chat box: function spawnadminP (prevA, curA, spawn) -- if ( getElementData(source, "gang") == "Admin" ) then spawnPlayer (source, 2007.37890625, 2907.80859375, 47.82311630249, 91.619140625, 217, 0, 0, adminP) -- fadeCamera (source, true) setCameraTarget (source, 2066.0576171875, 1253.369140625, 36.72605) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 9000) giveWeapon ( source, 34, 9000) giveWeapon ( source, 31, 9000) giveWeapon ( source, 27, 9000) else outputChatBox("You are not in Admin group!", thePlayer, 26, 152, 182) end end addEvent( "spawnadminP", true ) -- addEventHandler( "spawnadminP", root, spawnadminP ) --
-
i mean dude they dont die with explosives. and i wanna know how can they be killed by explosives , by script
-
Yup how?
-
Help . i have a question , is there any way zombies can be killed by explosions?