
Evil-Cod3r
Members-
Posts
370 -
Joined
-
Last visited
Everything posted by Evil-Cod3r
-
i have made this if Player Type in f8 gun its outputChatBox a msg see function gun () removeCommandHandler ( "gun" ) removeCommandHandler ( "gunmenu" ) outputChatBox("#ff0000Time choose Weapons Has Been End,source,") end addEventHandler ( "onResourceStart", getRootElement(), gun )
-
Xeno dosnt the event must be after end end end right ?
-
yes there is local x, y = guiGetScreenSize() function PlayerNameTags() local players = getElementsByType("player") for k,v in ipairs(players) do if v == getLocalPlayer() then else local r = getElementData(v,"red") local g = getElementData(v,"green") local b = getElementData(v,"blue") local x1,y1,z1 = getElementPosition (getLocalPlayer()) local x2,y2,z2 = getElementPosition (v) local visibleto = getDistanceBetweenPoints3D(x1,y1,z1,x2,y2,z2) if visibleto > 75 then else local sx,sy = getScreenFromWorldPosition ( x2,y2,z2+1.05 ) if not sx and not sy then else dxDrawText ( string.gsub ( getPlayerName ( v ), "#%x%x%x%x%x%x", "" ).."", sx,sy,sx,sy, tocolor(r,g,b,255), 1.8-visibleto/50, "default-bold", "center","top",false,false,false ) if y/102-visibleto/5 < 0 then else dxDrawRectangle ( sx-x/13/2+visibleto/2, sy+y/27.2-visibleto/3, x/13-visibleto,y/102-visibleto/10, tocolor(0,0,0,255) ) dxDrawRectangle ( sx-x/14/2+visibleto/2, sy+y/25-visibleto/3, x/14-visibleto,y/146.3-visibleto/10, tocolor(100,0,0,245) ) if getElementHealth(v) < 1 then else dxDrawRectangle ( sx-x/14/2+visibleto/2, sy+y/25-visibleto/3, x/14*getElementHealth(v)/100-visibleto,y/146.3-visibleto/10, tocolor(190,0,0,245) ) end local armor = getPedArmor(v) if armor and armor > 0 then dxDrawRectangle ( sx-x/13/2+visibleto/2, sy+y/40.2-visibleto/3, x/13-visibleto,y/102-visibleto/10, tocolor(0,0,0,255) ) dxDrawRectangle ( sx-x/14/2+visibleto/2, sy+y/38-visibleto/3, x/14-visibleto,y/146.3-visibleto/10, tocolor(100,100,100,245) ) dxDrawRectangle ( sx-x/14/2+visibleto/2, sy+y/38-visibleto/3, x/14*armor/100-visibleto,y/146.3-visibleto/10, tocolor(190,190,190,245) ) end end end end end end end addEventHandler("onClientRender",getRootElement(),PlayerNameTags)
-
try this FPSLimit = 50 FPSMax = 52 function onClientResourceStart ( resource ) if ( guiFPSLabel == nil ) then FPSLimit = 255 / FPSLimit guiFPSLabel = guiCreateLabel ( 0.03, 0.97, 0.1, 0.1, "FPS: 0", true ) FPSCalc = 0 FPSTime = getTickCount() + 1000 addEventHandler ( "onClientRender", getRootElement (), onClientRender ) end end addEventHandler ( "onClientResourceStart", getRootElement (), onClientResourceStart ) function onClientRender ( ) if ( getTickCount() < FPSTime ) then FPSCalc = FPSCalc + 1 else if ( FPSCalc > FPSMax ) then FPSLimit = 255 / FPSCalc FPSMax = FPSCalc end guiSetText ( guiFPSLabel, "FPS: "..FPSCalc.." Max: "..FPSMax ) guiLabelSetColor ( guiFPSLabel, 255 - math.ceil ( FPSCalc * FPSLimit ), math.ceil ( FPSCalc * FPSLimit ), 0 ) FPSCalc = 0 FPSTime = getTickCount() + 1000 end end
-
The Best FireWorks ever ! Nice Man
-
what this do and read my post up
-
should i use getTeamName() then guisetTexe = The Button?
-
iam using BaseMode GameMode what if the Name of team 1 and team 2 is Xeno 1 and Xeno 2 what Function i use for set the team as it found
-
no i want he give me the function so i can start
-
no Xeno i want as SoldSnake14 Say
-
Hi all i want To Make this he get the Team 1 and 2 and Spectator and set the Player to the Team he got see GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(441,476,532,103,"A/D Team Select",false) guiWindowSetSizable(GUIEditor_Window[1],false) A3 = guiCreateButton(15,29,148,30,"Spectator",false,GUIEditor_Window[1]) guiSetFont(A3,"clear-normal") A2 = guiCreateButton(185,28,151,31,"Team 1",false,GUIEditor_Window[1]) guiSetFont(A2,"clear-normal") A3 = guiCreateButton(351,28,156,32,"Team 2",false,GUIEditor_Window[1]) guiSetFont(A3,"clear-normal") GUIEditor_Label[1] = guiCreateLabel(7,77,171,21,"Select Your Team !",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Label[2] = guiCreateLabel(429,76,92,20,"Version 1.0",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,0,255) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Label[3] = guiCreateLabel(210,77,104,15,"Evil-Cod3r",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[3],"clear-normal")
-
relative: This is whether sizes and positioning are relative. If this is true, then all x,y,width,height floats must be between 0 and 1, representing sizes/positions as a fraction of the screen size. If false, then the size and co-ordinates are based on client's resolution, accessible using guiGetScreenSize.
-
no Man iam just trying to help any one
-
i dont get what you mean at the first topic
-
function checkAFKPlayers() for index, thePlayer in ipairs(getElementsByType("player"))do -- Loop all online players if (getPlayerIdleTime(thePlayer) > 300000) then -- Player hasn't moved for 300,000ms (5 minutes) kickPlayer(thePlayer, "Idle for 5 minutes") -- Kick the idle player end end end setTimer(checkAFKPlayers, 30000, 0) -- Timer to execute every 30 seconds, checking for idlers
-
i think that hard for me iam new on script thx anyway for help
-
he give me the source info only for exmaple if BinSlayer1 and me and bandi94 are team 1 then the label name = BinSlayer1 Helath : .... bandi94 Health : .... Evil-Cod3r Health : ... like this you get it ?
-
not i dont want he see his info i want the Players see the info of there frinds just the Name and Health
-
is this right ? local name = getPlayerName(getLocalPlayer()) local team = getPlayerTeam ( source ) local dm = getElementHealth ( getLocalPlayer() ) function hp () label1 = guiCreateLabel(1240,585,125,17,"Health :",false) guiLabelSetColor(label1,255,255,0) guiSetFont(label1,"clear-normal") guiSetText ( label1, dm, team ) setTimer ( hp, 2000, 1) end addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), hp )
-
Hi all i have idea i want Make a resource that show the Players Name and there Health Only and get the Players team example if iam team 1 and team 1 got Players can see the Name of there frinds and there Health and team 2 the same every team see there frinds info only can any one give me the functions and events so i can start Make it ?
-
yes copy what JR10 Post
-
local sounds = { "http://www.mysound1.com/sound1", "http://www.mysound1.com/sound2" } addEventHandler("onClientPlayerJoin", getResourceRootElement(getThisResource()), function() playSound(sounds[math.random(2, #sounds)]) end )
-
is there another way ?
-
Hi all i want Make TOP 10 Players in server By EXP and Level top_window = guiCreateWindow(248,95,417,409,"TOP 10 ",false) top_grid = guiCreateGridList(9,25,399,333,false,top_window) guiGridListSetSelectionMode(top_grid,2) guiGridListAddColumn(top_grid,"Player Name",0.2) guiGridListAddColumn(top_grid,"EXP",0.2) guiGridListAddColumn(top_grid,"Lvl",0.2) close_ = guiCreateButton(106,363,224,31,"CLOSE",false,top_window) function ShowTheGui() if (guiGetVisible(top_window) == true) then guiSetVisible(top_window, false) showCursor(false) else guiSetVisible(top_window, true) showCursor(true) end end bindKey("F3","down",ShowTheGui) function CloseTheGui (button, state, absoluteX, absoluteY) if (source == close_) then guiSetVisible (top_window, false) showCursor(false) end end addEventHandler ("onClientGUIClick", getRootElement(), CloseTheGui) theExp = getElementData(source, "EXP") theRank = getElementData(source, "Level")