Jump to content

Gravestone

Members
  • Posts

    467
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Gravestone

  1. Yes, that's what I'm saying, take reference from there and add a system if the player has permission to set the next map. I'll try to look into the admin resource too.
  2. I don't know how you can achieve what you're to do, but yes, it's possible. I've seen it in some servers also there's an option in the admin panel by default in the 'maps' tab. You can set the map selected in the gridlist as the next map by using 'Set Next Map' button over there. You can take reference from there perhaps.
  3. Which connection type are you using?
  4. You can create a column with the id of the marker.
  5. This is the most important point you should consider, since the performance of the server matters alot. I know an idea about having the map's on client sided. You can convert your maps to lua form using something like this and then use any client file protecting way for example the most common, 'cache=false' attribute in the meta. However this does not fully protect your files but there are many other tutorials by forum members, you can go look for them.
  6. Soon will be uploading a de-compiled version. Please report bugs if you find any.
  7. I don't know if there is any other way to detect the fall but I know that fall from bike does not always cause damage.
  8. Updated the download link. (Uploaded resource in the community)
  9. Hey, I was trying to upload my Clan War resource to the community center but when ever I try to upload it, it says: Uploading failed due to following errors: The meta.xml in the zip is invalid. Please check it for errors. Here's my meta.xml file, it seems to contain no errors I couldn't find any better forum to post this, if this isn't the right forum, kindly move it, thanks.
  10. Yeah, an hour or two would be pretty good for adding/removing examples. Also there should be an option to delete your topic within 20 minutes or something if your find the solution your self or mistakenly double create the same topic.
  11. Gravestone

    help

    Oh yeah, my bad. Replace local r, g, b = guiGridListGetItemColor(gridlist, i, 1) with this local tr, tg, tb = guiGridListGetItemColor(gridlist, i, 1)
  12. Try changing sX,sY = guiGetScreenSize() function drawToptimesIntreface() local x,y = guiGetScreenSize() to this sX,sY = guiGetScreenSize() function drawToptimesIntreface() local x,y = sX/1980, sY/1080
  13. Is it fine on bigger resolutions? The personal best's position I meant.
  14. This is just a single line of your code, do this to the other ones. local psWidth, psHeight = guiGetScreenSize() local cX, cY = psWidth/1980, psHeight/1080 dxDrawText("Toptimes - "..toptimes.mapname, sX-x*0.671875, (sY/2)-y*0.8518518518518519, sX-x*0.0052083333333333, (sY/2)-y*0.125, titleColor, cX*1, cY*1, "default-bold", "center","center",true) Btw, you don't have to be so specific about the positioning, you can round the values to 2 or 3 decimal places.
  15. Gravestone

    help

    You can do it like this: function getGridListItemsWithColor(gridlist, r, g, b) if isElement(gridlist) then local items = {} -- create a table if tonumber(r) and tonumber(g) and tonumber(b) then -- RGB values are numbers for i=0, guiGridListGetRowCount(gridlist)-1 do -- get gridlist count local r, g, b = guiGridListGetItemColor(gridlist, i, 1) -- loop through all item colors if tr == r and tg == g and tb == b then -- if the color matches the specified RGB table.insert(items, i) -- insert the item number to the table end end end end return #items end If you're trying to get items with pure red color, use getGridListItemsWithColor(gridlist, 255, 0, 0). It will return the item number btw.
  16. @CodyL this is what I was talking about, 'break dancing object' haha. The objects are also being moved upwards and downwards.
  17. You can, by cancelling the event.
  18. You can do something like this addEventHandler("onPlayerLogin", root, function() cancelEvent() logIn() -- login the player somehow end )
  19. This means that the logIn function is being triggered twice. Mostly happens when you double click on a gui button.
  20. That's a cleo mod for GTA SA. For the lights thing, I guess you'll have to use setVehicleOverrideLights, if not then use shaders. For the first person view, you can use setCameraMatrix.
  21. Does getControl(wndMain, 'Warp', true) return a check box element? If no, then use this: guiCheckBoxSetSelected(chechkbox, true)
  22. Use onClientResourceStart and then guiCheckBoxSetSelected.
×
×
  • Create New...