Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. onPlayerCommand and cancel the event if its the command /ban and make a new command /banp
  2. Why would you check if the player's health is over 0 in the armor's function? Common sense, When I died in a server, Health was 0 and armor was thier and when I spawned armor was 0.
  3. local health = math.ceil(getElementHealth(localPlayer)) if health > 0 then dxDrawImage(x*Tlargura, y*Taltura, largura, altura, "health/"..(math.ceil(getElementHealth(localPlayer)/5)*5)..".png" ) end local armor = math.ceil(getPedArmor(localPlayer)) if health > 0 and armor > 0 then dxDrawImage(x*Alargura, y*Aaltura, largura, altura, "armor/"..(math.ceil(getPedArmor(localPlayer)/5)*5)..".png" ) end To check if there is armor!
  4. Why not make custom resources then by using mysql/sql?
  5. myTable = { "select1", 'select2' } addCommandHandler("test", function() for k,v in ipairs(getElementsByType("player")) do triggerClientEvent(resourceRoot, "sendTable", resourceRoot, myTable) end end ) client: addEvent("sendTable",true) addEventHandler("sendTable", root, function(table) for k,v in ipairs(table) do outputChatBox(v) end end ) Use test. It will output all table containts. This was just a example how to trigger a table to client side and loop it. I suggest you to do like this.
  6. Better than relative is guiGetScreenSize as it keeps the scale same.
  7. X,Y of buttons, according to resolutation use maths. To fit it.
  8. Then load the code again and do the X,Y on Set Position Code
  9. How is that?.... Re-create the image. Right click Click on Set Position Code Click on Presets Select 1 Click Ok
  10. Anubhav

    Server Help!

    If he still has leaked resources and changed name it won't work. There should be no leaked resource or cloning a server name.
  11. Anubhav

    need help!

    We won't provide you scripts, we are here to help people only.
  12. local gate1 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate2 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate3 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate4 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate5 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate6 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate7 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate8 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate9 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate10 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate11 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate12 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate13 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate14 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate15 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate16 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate17 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate18 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate19 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate20 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate21 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate22 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate23 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate24 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate25 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate26 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate27 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate28 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate29 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate30 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate31 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate32 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate33 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate34 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate35 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate36 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate37 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate38 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate39 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate40 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate41 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate42 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate43 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate44 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate45 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate46 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate47 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate48 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate49 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate50 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate51 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate52 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate53 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) local gate54 = createObject (3437, 4905, -1600, 1999.0649414063, 0, 90, 90) function move1_1 () moveObject(gate1, 4500, 4880, -1619.2002, 2005.45, 0, 0, 90 ) moveObject(gate2, 4500, 4880, -1619.2002, 2005.45, 0, 0, 90 ) moveObject(gate3, 4500, 4880, -1580.8, 2005.45, 0, 0, 90 ) moveObject(gate4, 4500, 4905, -1580.7998, 2005.45, 0, 0, 90 ) moveObject(gate5, 4500, 4930, -1580.80005, 2005.44995, 0, 0, 90 ) moveObject(gate6, 4500, 4955, -1580.80005, 2005.44995, 0, 0, 90 ) moveObject(gate7, 4500, 4980, -1580.80005, 2005.44995, 0, 0, 90 ) moveObject(gate8, 4500, 5005, -1580.80005, 2005.44995, 0, 0, 90 ) moveObject(gate9, 4500, 5030, -1580.80005, 2005.44995, 0, 0, 90 ) moveObject(gate10, 4500, 5055, -1580.7998, 2005.45, 0, 0, 90 ) moveObject(gate11, 4500, 5080, -1580.80005, 2005.44995, 0, 0, 90 ) moveObject(gate12, 4500, 4930, -1619.19995, 2005.44995, 0, 0, 90 ) moveObject(gate13, 4500, 4955, -1619.19995, 2005.44995, 0, 0, 90 ) moveObject(gate14, 4500, 4980, -1619.19995, 2005.44995, 0, 0, 90 ) moveObject(gate15, 4500, 5005, -1619.19995, 2005.44995, 0, 0, 90 ) moveObject(gate16, 4500, 5030, -1619.19995, 2005.44995, 0, 0, 90 ) moveObject(gate17, 4500, 5055, -1619.19995, 2005.44995, 0, 0, 90 ) moveObject(gate18, 4500, 5080, -1619.2, 2005.45, 0, 0, 90 ) moveObject(gate19, 4500, 4905, -1612.5, 1999.0649, 0, 90, 90 ) moveObject(gate20, 4500, 4905, -1587.5, 1999.0649, 0, 90, 90 ) moveObject(gate21, 4500, 4880, -1587.5, 1999.0649, 0, 90, 90 ) moveObject(gate22, 4500, 4880, -1587.5, 2011.0081, 0, 90, 90 ) moveObject(gate23, 4500, 4880, -1612.5, 2011.0081, 0, 90, 90 ) moveObject(gate24, 4500, 4880, -1612.5, 1999.0649, 0, 90, 90 ) moveObject(gate25, 4500, 4905, -1587.5, 2011.0081, 0, 90, 90 ) moveObject(gate26, 4500, 4905, -1612.5, 2011.0081, 0, 90, 90 ) moveObject(gate27, 4500, 4930, -1587.5, 2011.00806, 0, 90, 90 ) moveObject(gate28, 4500, 4955, -1587.5, 2011.00806, 0, 90, 90 ) moveObject(gate29, 4500, 4980, -1587.5, 2011.00806, 0, 90, 90 ) moveObject(gate30, 4500, 5005, -1587.5, 2011.00806, 0, 90, 90 ) moveObject(gate31, 4500, 5030, -1587.5, 2011.00806, 0, 90, 90 ) moveObject(gate32, 4500, 5055, -1587.5, 2011.00806, 0, 90, 90 ) moveObject(gate33, 4500, 5080, -1587.5, 2011.00806, 0, 90, 90 ) moveObject(gate34, 4500, 4930, -1612.5, 2011.00806, 0, 90, 90 ) moveObject(gate35, 4500, 4955, -1612.5, 2011.00806, 0, 90, 90 ) moveObject(gate36, 4500, 4980, -1612.5, 2011.00806, 0, 90, 90 ) moveObject(gate37, 4500, 5005, -1612.5, 2011.00806, 0, 90, 90 ) moveObject(gate38, 4500, 5030, -1612.5, 2011.00806, 0, 90, 90 ) moveObject(gate39, 4500, 5055, -1612.5, 2011.00806, 0, 90, 90 ) moveObject(gate40, 4500, 5080, -1612.5, 2011.00806, 0, 90, 90 ) moveObject(gate41, 4500, 4930, -1587.5, 1999.06494, 0, 90, 90 ) moveObject(gate42, 4500, 4955, -1587.5, 1999.06494, 0, 90, 90 ) moveObject(gate43, 4500, 4980, -1587.5, 1999.06494, 0, 90, 90 ) moveObject(gate44, 4500, 5005, -1587.5, 1999.06494, 0, 90, 90 ) moveObject(gate45, 4500, 5030, -1587.5, 1999.06494, 0, 90, 90 ) moveObject(gate46, 4500, 5055, -1587.5, 1999.06494, 0, 90, 90 ) moveObject(gate47, 4500, 5080, -1587.5, 1999.06494, 0, 90, 90 ) moveObject(gate48, 4500, 4930, -1612.5, 1999.06494, 0, 90, 90 ) moveObject(gate49, 4500, 4955, -1612.5, 1999.06494, 0, 90, 90 ) moveObject(gate50, 4500, 4980, -1612.5, 1999.06494, 0, 90, 90 ) moveObject(gate51, 4500, 5005, -1612.5, 1999.06494, 0, 90, 90 ) moveObject(gate52, 4500, 5030, -1612.5, 1999.06494, 0, 90, 90 ) moveObject(gate53, 4500, 5055, -1612.5, 1999.06494, 0, 90, 90 ) moveObject(gate54, 4500, 5080, -1612.5, 1999.06494, 0, 90, 90 ) end
  13. IIYAMA running should be "running".
  14. I'd prefer you to use this at server side and make a trigger!
  15. I don't think so MJNONFIK. And function addvip ( account ) for i, v in pairs ( getElementsByType ( "player" ) ) do local a = getPlayerAccount ( v ) if ( not isGuestAccount ( a ) and getAccountName ( a ) == account ) then aclGroupAddObject (aclGetGroup("VIP"), "user."..v) aclSave() return true end end return false end
  16. Anubhav

    Staff image

    v is not defined and you are using mixed functions.
×
×
  • Create New...