Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. I am making this resource for my friend and my server. It will be compiled and it is by A-team ( Anubhav Scriping Team) What is planned for release? THIS IS MAINLY FROM SGN. License will be thier! [*] GUI based! [*] Invite players! [*] Create gangs! Delete your gang! Leave your gang! Pass the foundership! [*] 3 ranks. 1 = Founder 2 = Leader 3 = Trial [*] View your group invites! [*] Promote/Demote/Kick a member. [*] Group chat! [*] Change turf color! Planned to release: In September sadly.. Progress: 10%
  2. Sure, requesting a lock here.
  3. I never saw that. I will cancel the project..
  4. 1. Meta.xml <file src="xXMADEXx.dff" download="false"/> 2. No need to do delete, just use: downloadFile('xXMADEXx.dff') And use the event onClientFileDownloadComplete to check if its completed.
  5. Suggestion: You should add function 'set3DTextFont'. To set fonts
  6. markers = {} vehicles = {} blips = {} function lsjobser () if isElement(vehicles[source]) then destroyElement(vehicles[source]) end if isElement(blips[source]) then destroyElement(blips[source]) end if isElement(markers[source]) then destroyElement(markers[source]) end vehicles[source] = createVehicle (498, 1604.68, -1475.15, 13.93) warpPedIntoVehicle ( source, vehicles[source] ) markers[source] = createMarker (979.65, -1261.75, 15.22, "cylinder", 2, 255, 0, 0, 255) blips[source] = createBlipAttachedTo (markers[source], 51) end addEvent ("givePlayerJobLS", true) addEventHandler ("givePlayerJobLS", root, lsjobser) function moneyLS (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 3000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+2) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end if isElement(blips[source]) then destroyElement(blips[source]) end if isElement(markers[source]) then destroyElement(markers[source]) end end end addEventHandler( "onMarkerHit", resourceRoot, moneyLS ) function lvjobser () if isElement(vehicles[source]) then destroyElement(vehicles[source]) end if isElement(blips[source]) then destroyElement(blips[source]) end if isElement(markers[source]) then destroyElement(markers[source]) end vehicles[source] = createVehicle (498, 1604.68, -1475.15, 13.93) warpPedIntoVehicle(attacker, vehicles[source]) markers[source] = createMarker (1074.43, 1292.71, 9.82, "cylinder", 2, 255, 0, 0, 255) blips[source] = createBlipAttachedTo (markers[source], 51) end addEvent ("givePlayerJobLV", true) addEventHandler ("givePlayerJobLV", root, lvjobser) function sfjobser () if isElement(vehicles[source]) then destroyElement(vehicles[source]) end if isElement(blips[source]) then destroyElement(blips[source]) end if isElement(markers[source]) then destroyElement(markers[source]) end vehicles[source] = createVehicle (498, 1604.68, -1475.15, 13.93) warpPedIntoVehicle(source, vehicles[source]) markers[source] = createMarker (-2052.80, 144.87, 27.83, "cylinder", 2, 255, 0, 0, 255) blips[source] = createBlipAttachedTo (markers[source], 51) end addEvent ("givePlayerJobSF", true) addEventHandler ("givePlayerJobSF", root, sfjobser)
  7. First as IIYAMA said another no problem @ twerky
  8. local sx,sy = guiGetScreenSize() addEventHandler("onClientRender", root, function ( ) local playerVehicle = getPedOccupiedVehicle ( getLocalPlayer() ) if playerVehicle then local vehicleHealth = getElementHealth ( playerVehicle ) dxDrawRectangle(sx*58, sy*997, sx*83/1000*vehicleHealth, sy*4, tocolor(100, 254, 46, 255), true) -- Health dxSetAspectRatioAdjustmentEnabled( true ) end end)
  9. Anubhav

    Ped

    Hahaha. no problem
  10. Anubhav

    Ped

    PedPolice = createPed ( 280, 1287.17981, -1661.16187, 13.54688) setElementFrozen(PedPolice,true) setPedAnimation( PedPolice, "PED", "IDLE_CHAT") addEventHandler ( "onClientPedDamage",PedPolice, function ( ) cancelEvent () end)
  11. Today I was thinking of making something because I was bored on doing one thing, I wanted to do something interesting so I started this. This is going to be created by A-TEAM. ( Anubhav Scripters Team. ) What is planned for release? [*] A editor will open up ( obviously for ACL groups defined in a file. ). Bind-key can be set thier too. * Default will be E [*] You'll be able to play sounds with it. ( Not sure about this 1 :3 ) [*] Resource list, you can edit stopped resources. [*] Create a resource. You'll also be able to create a resource and meta.xml and scripts too. NOTE: There will be no syntax highlighter for now. Planned to release: After some days, not sure. Exams in comming. Progress: 0% ( Din't started LOL. ) Do you want to help?? Sure! Please add me at skype anubhav.agarwal87 and contribute!
  12. local colors = { {r=255,g=0,b=0}, -- SYNTAX: {r=rValue, g=gValue, b=bValue}, } times = "rgbcolor" team = createTeam ( "Team Name" ) function idkname () for k,v in ipairs(colors) do if times == "random" then setTeamColor(team, math.random(0,255), math.random(0,255), math.random(0,255)) times = "rgbcolor" return end if isTimer(timer) then killTimer(timer) timer = setTimer(idkname, 2000, 1) end times = "random" setTeamColor(team, v.r, v.g, v.b) end end timer = setTimer(idkname , 5000, 1)
  13. What do you mean? You wanted it like that:3. No problem.
  14. If you are triggering server to client for gui remember to trigger for that player only or it may destroy for others who din't login.
  15. Anubhav

    /me command

    addEventHandler("onPlayerChat", getRootElement(), function(msg, msgType) if msgType == 1 then cancelEvent() local playerName = string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") local message = msg:gsub("#%x%x%x%x%x%x", "") outputChatBox("*"..playerName.." "..message) end end)
  16. destroyElement is not the solution. If you destroy the GUI you'll need to create it again. It may give you some errors if you destroy it and u use the variable. Solution is guiSetVisible. You can hide and un-hide it whenever u want and no need to create it again.
  17. local colors = { {r=255,g=0,b=0}, -- SYNTAX: {r=rValue, g=gValue, b=bValue}, } times = nil team = createTeam ( "Team Name" ) function idkname () for k,v in ipairs(colors) do if times == "random" then setTeamColor(team, math.random(0,255), math.random(0,255), math.random(0,255)) times = "rgbcolor" return end if isTimer(timer) then killTimer(timer) timer = setTimer(idkname, 1000, 1) end times = "random" setTeamColor(team, v.r, v.g, v.b) end end timer = setTimer(idkname , 5000, 1)
  18. Thats pretty simple to do. local colors = { {r=255,g=0,b=0}, -- SYNTAX: {r=rValue, g=gValue, b=bValue}, } times = nil team = createTeam ( "Team Name" ) function idkname () for k,v in ipairs(colors) do if times == "random" then setTeamColor(team, math.random(0,255), math.random(0,255), math.random(0,255)) times = "rgbcolor" return end if isTimer(timer) then killTimer(timer) timer = setTimer(idkname, 2000, 1) end times = "random" setTeamColor(team, v.r, v.g, v.b) end end timer = setTimer(idkname , 5000, 1)
  19. Oh. CODE REMOVED BY Solidsnake14
  20. local colors = { {r=255,g=0,b=0}, -- SYNTAX: {r=rValue, g=gValue, b=bValue}, } times = nil team = createTeam ( "Team Name" ) function idkname () for k,v in ipairs(colors) do if times == "random" then setTeamColor(team, math.random(0,255), math.random(0,255), math.random(0,255)) times = "rgbcolor" return end times = "random" setTeamColor(team, v.r, v.g, v.b) end end setTimer(idkname ,1000,0)
  21. Enter your cordinates at line 3. With a , CODE REMOVED BY Solidsnake14
×
×
  • Create New...