Jump to content

Admigo

Members
  • Posts

    175
  • Joined

  • Last visited

Everything posted by Admigo

  1. That code is giving 1 player money with an amount. I just want make a command like that i give everyone in server 1000 money. Not a command with amount. So just a code like /giveeveryonecash- gives everyone in server 1000 money.
  2. I will exlain in a lua code: givePlayerMoney ( all players who are online in server(dont count me), 1000 )
  3. No ,i mean like if you make a command like:/giveallmoney1000. So you give everyone on the server 1000 money but not your self. I hope that possible. Or a code for GiveAllCash or something like that.
  4. Heey all, How can i make a command that i give all other players(not myself) of server 1000 dollar ? Thanks Admigo
  5. Admigo

    Hide Radar

    Thank you so much dude;)
  6. Admigo

    Hide Radar

    Heey all, How i can hide the radar everytime? Because when a new map starts the radar shows again. showPlayerHudComponent ( source, "all", false ) Is there a script somewhere that has the code: showPlayerHudComponent ( source, "all", true ) Or something like that because i made a timer with the false code but dont work. Thanks Admigo
  7. Need help with u code ,u sended me: if vehicle then hp=(getElementHealth(vehicle)-250)*0.24 armor=0 end Its not working because when the bar is 3/4 my car explodes. I want that it explodes at 4/4 and the green ring dont change from color with vehicle health. Same as what you did at player health.
  8. Heey all, I have the ivhud and now i fixed it so i changed the health bar into vehicle health bar. But there is a problem,the bar is not good because when my bar is 75% of health my car explodes(car health 300 or something) But how can i change it that if the bar is 100% the car explodes. Code: function refreshHP() hp=getElementHealth(localP)*1.8/(1+math.max(getPedStat(localP,24)-569,0)/431) --hp conversion to 180 to be max armor=getPedArmor(localP)*1.8 --todo stat dependance on armor end function drawHP() vehicle = getPedOccupiedVehicle(localP)--i made this code,i dont know if its a problem if vehicle then hp=getElementHealth(vehicle)*0.18 armor=0 end local degr=360 local hpTempCol if hp<=18 then local ticks=getTickCount()%600 local red=ticks<=300 and 0 or 200 hpTempCol=tocolor(red,0,0,255) end hpTempCol=hpTempCol or hpCol dxDrawImage(x2,y2,l2,h2,'images/ring360.png',0,0,0,hpTempCol,false) if armor~=0 then degr=degr-hp dxDrawImage(x2,y2,l2,h2,'images/ring180.png',math.max(0,degr-1.-- s8) -->,0,0,armorCol,false) degr=degr-armor else degr=degr-hp*2 end --if dmgcount~=0 then local currprog=0 for n=0,6 do local val=180/2^n if math.ceil(val)<=degr then degr=degr-val dxDrawImage(x2,y2,l2,h2,'images/ring'..math.ceil(val)..'.png',val+currprog,0,0,black,false) currprog=currprog+val if degr>=360 then break end end end end How can i fix this? Thanks Admigo
  9. Hello all, I bought a vps server at DOMVPS and now i have the mta panel but only i dont know the ports that i can use for the mta server. What ports can i use for server and http? Thanks Admigo
  10. DomVPS Hosting is a bad hosting service. I sended a ticket for a mta panel and still i am not helped.
  11. Hello all, I want a good hosting service for my server. 1.Whats better to use:Gameserver or VPS? 2.What Gameserver or VPS u would recom me? 3.What does a VPS Server? It keeps your server online or its only for buying an ip? I hope you will answer some of my questions because i really need a good host for a 1.3 server. Thanks Admigo
  12. Heey all, There is a resource called ivhud that has the hud of gta iv. There is a green ring with health but how can i make it to vehicle health? Codes: function refreshHP() hp=getElementHealth(localP)*1.8/(1+math.max(getPedStat(localP,24)-569,0)/431) --hp conversion to 180 to be max armor=getPedArmor(localP)*1.8 --todo stat dependance on armor end function drawHP() if raceMode and vehicle then hp=getElementHealth(vehicle)*0.18 armor=0 end local degr=360 local hpTempCol if hp<=18 then local ticks=getTickCount()%600 local red=ticks<=300 and 0 or 200 hpTempCol=tocolor(red,0,0,255) end hpTempCol=hpTempCol or hpCol dxDrawImage(x2,y2,l2,h2,'images/ring360.png',0,0,0,hpTempCol,false) if armor~=0 then degr=degr-hp dxDrawImage(x2,y2,l2,h2,'images/ring180.png',math.max(0,degr-1.-- s8) -->,0,0,armorCol,false) degr=degr-armor else degr=degr-hp*2 end --if dmgcount~=0 then local currprog=0 for n=0,6 do local val=180/2^n if math.ceil(val)<=degr then degr=degr-val dxDrawImage(x2,y2,l2,h2,'images/ring'..math.ceil(val)..'.png',val+currprog,0,0,black,false) currprog=currprog+val if degr>=360 then break end end end end Pls Help. Thanks Admigo.
  13. This is code: function refreshHP() hp=getElementHealth(localP)*1.8/(1+math.max(getPedStat(localP,24)-569,0)/431) --hp conversion to 180 to be max armor=getPedArmor(localP)*1.8 --todo stat dependance on armor end function drawHP() if raceMode and vehicle then hp=getElementHealth(vehicle)*0.18 armor=0 end local degr=360 local hpTempCol if hp<=18 then local ticks=getTickCount()%600 local red=ticks<=300 and 0 or 200 hpTempCol=tocolor(red,0,0,255) end hpTempCol=hpTempCol or hpCol dxDrawImage(x2,y2,l2,h2,'images/ring360.png',0,0,0,hpTempCol,false) if armor~=0 then degr=degr-hp dxDrawImage(x2,y2,l2,h2,'images/ring180.png',math.max(0,degr-1.-- s8) -->,0,0,armorCol,false) degr=degr-armor else degr=degr-hp*2 end --if dmgcount~=0 then local currprog=0 for n=0,6 do local val=180/2^n if math.ceil(val)<=degr then degr=degr-val dxDrawImage(x2,y2,l2,h2,'images/ring'..math.ceil(val)..'.png',val+currprog,0,0,black,false) currprog=currprog+val if degr>=360 then break end end end end How can i edit this for vehicle health?
  14. Heey all, I want to detect the vehicle health of a player. I need it for the ivhud. Pls Help. Thanks Admigo
  15. I mean the official deathmatch,not derby dm:P
  16. Dear scripters, Is there a toolbox or a resource for making deathmatch maps?(not derby) Because when i want to make a spawn for deathmatch i dont see a player pickup. Thanks Admigo
  17. I got the client render from wiki and i placed it at rankingboard_client and i get error at util_client,
  18. Still same error: Util_client:attempt to perform arithmetic on local x(a nil valua) Error line: local shadow = guiCreateLabel(x + 1, y + 1, width, height, text, false) My full code: function createShadowedLabelFromSpare(x, y, width, height, text, align) if #spareElems < 2 then if not donePrecreate then outputDebug( 'OPTIMIZATION', 'createShadowedLabel' ) end return createShadowedLabel(x, y, width, height, text, align) else local shadow = table.popLast( spareElems ) guiSetSize(shadow, width, height, false) guiSetText(shadow, text) --guiLabelSetColor(shadow, 0, 0, 0) dxDrawText ( text, x, y, width, height, tocolor ( 255, 255, 0, 255 ), 1.02, "pricedown" ) guiSetPosition(shadow, x + 1, y + 1, false) guiSetVisible(shadow, true) local label = table.popLast( spareElems ) guiSetSize(label, width, height, false) guiSetText(label, text) --guiLabelSetColor(label, 255, 255, 255) dxDrawText ( text, x, y, width, height, tocolor ( 255, 255, 0, 255 ), 1.02, "pricedown" ) guiSetPosition(label, x, y, false) guiSetVisible(label, true) if align then guiLabelSetHorizontalAlign(shadow, align) guiLabelSetHorizontalAlign(label, align) else guiLabelSetHorizontalAlign(shadow, 'left') guiLabelSetHorizontalAlign(label, 'left') end return label, shadow end end addEventHandler ( "onClientRender", root, createShadowedLabelFromSpare ) How can i fix this pls?
  19. Put your script at gameplay,u can start the script at the admin panel or add it at mta-server.
  20. If you want to edit the pickups go to the race gamemode . There is a folder called models. There you can find the pickups. If u want to change the colors of pickups u need the txd files. To change this file you need txd workshop.
  21. Made This: function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createShadowedLabelFromSpare ) -- keep the text visible with onClientRender. end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering ) Debugscript 3: Util_client:attempt to perform arithmetic on local x(a nil valua)
  22. Now i have this: function createShadowedLabelFromSpare(x, y, width, height, text, align) if #spareElems < 2 then if not donePrecreate then outputDebug( 'OPTIMIZATION', 'createShadowedLabel' ) end return createShadowedLabel(x, y, width, height, text, align) else local shadow = table.popLast( spareElems ) guiSetSize(shadow, width, height, false) guiSetText(shadow, text) --guiLabelSetColor(shadow, 0, 0, 0) dxDrawText ( text, x, y, width, height, tocolor ( 255, 255, 0, 255 ), 1.02, "pricedown" ) guiSetPosition(shadow, x + 1, y + 1, false) guiSetVisible(shadow, true) local label = table.popLast( spareElems ) guiSetSize(label, width, height, false) guiSetText(label, text) --guiLabelSetColor(label, 255, 255, 255) dxDrawText ( text, x, y, width, height, tocolor ( 255, 255, 0, 255 ), 1.02, "pricedown" ) guiSetPosition(label, x, y, false) guiSetVisible(label, true) if align then guiLabelSetHorizontalAlign(shadow, align) guiLabelSetHorizontalAlign(label, align) else guiLabelSetHorizontalAlign(shadow, 'left') guiLabelSetHorizontalAlign(label, 'left') end return label, shadow end end When i press enter the yellow text appears for a sec. How can i fix this?
  23. This will be a hard task. I need to change the rankingboard client?
×
×
  • Create New...