Jump to content

Hedning

Members
  • Posts

    482
  • Joined

  • Last visited

Posts posted by Hedning

  1. Can't download 0.5 from gonnaplay anymore and I cant find anything on google so if someone could post me a link to a safe download or maybe upload it somewhere I would really appriciate it.

  2. Created a few months ago actually but got some problem with it, anyway here it is.

    The map has 3 moving objects, some teleporters and random pickups. And a few sanchez.

    The script is created with help from AlienX, Norby89, Lucif3r ages ago when I didnt know anything 'bout lua.

    Swat vs Army

    75674257ae2.th.png

    78497591mo8.th.png

    71459026hy9.th.png

    27965857js2.th.png

    84391395ar3.th.png

    http://www.rarhost.com/download-cpvez7.html

    Cant upload it to mtabeta :/ get this error:

    Uploading failed due to following errors:

    *

    One or more gamemodes this map says to be compatible with do not exist:

    tdma

  3. getElementByType http://development.mtasa.com/index.php? ... entsByType

    ex:

    for k,v in ipairs(getElementsByType ( "cylinder" )) do 
                    markerGrav[k] = {} 
                    markerGrav[k].red = getElementData ( v, "red" ) 
                    markerGrav[k].green = getElementData ( v, "green" ) 
                    markerGrav[k].blue = getElementData ( v, "blue" ) 
                     
      
                    markerGrav[k].cylinder = {} 
                    for i,j in ipairs(getChildren ( v, "cylinder" )) do 
                            markerGrav[k].cylinder[i] = {} 
                            markerGrav[k].cylinder[i].size = getElementData( j, "size" ) 
                            markerGrav[k].cylinder[i].alpha = getElementData( j, "alpha" ) 
                            markerGrav[k].cylinder[i].grav = getElementData( j, "grav" ) 
                       --     markerGrav[k].cylinder[i].chat = getElementData( j, "chat" ) 
                    end 
                     
                    --position 
                    markerGrav[k].position = {} 
                    for i,j in ipairs(getChildren ( v, "position" )) do 
                            markerGrav[k].position[i] = {} 
                            markerGrav[k].position[i].posX = getElementData ( j, "posX" ) 
                            markerGrav[k].position[i].posY = getElementData ( j, "posY" ) 
                            markerGrav[k].position[i].posZ = getElementData ( j, "posZ" ) 
                    
            local     marker = createMarker ( markerGrav[k].position[i].posX, markerGrav[k].position[i].posY, markerGrav[k].position[i].posZ, "cylinder", markerGrav[k].cylinder[i].size, markerGrav[k].red, markerGrav[k].green, markerGrav[k].blue, markerGrav[k].cylinder[i].alpha )   
      
      
    

    and in my map file:

    These are the children --->

    These are the children --->

  4. Remember to put this client side!

    function serverInfo () 
      
        helpTab = guiCreateWindow ( 0.25, 0.25, 0.5, 0.6, "Select character", true ) 
      
            helpGridList = guiCreateGridList ( 0.0, 0.10, 0.18, 0.4, true, helpTab ) 
      
    addEventHandler ("onClientGUIClick", helpGridList, chooseHelp ) 
    column = guiGridListAddColumn ( helpGridList, "OHHH TEXT: ", 0.85 ) 
    local press = guiGridListAddRow ( helpGridList ) 
      
    press = guiGridListSetItemText ( helpGridList, press, column, "press moi", false, false) 
      
    end 
    addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource()), serverInfo) 
      
      
    function chooseHelp () 
        local choosenHelp = guiGridListGetItemText ( helpGridList, guiGridListGetSelectedItem ( helpGridList ), 1 ) 
        if choosenHelp == "press moi" then 
            if not ( topic ) then 
    outputChatBox("lollerskates + 1 = 5?") 
      
    end 
    end 
    end 
      
    

    http://development.mtasa.com/index.php? ... _functions

×
×
  • Create New...