Jump to content

Cornelis

Members
  • Content Count

    33
  • Joined

  • Last visited

Posts posted by Cornelis

  1. Hi all i make tiger for show gun image, it work but only first tigerEvent for show grenade image and when i use molotow then still show me grenade image, what is bad please help ty
    addEventHandler("onPlayerDamage",getRootElement(), 
        function(attacker,weapon,bodypart,loss) 
            if getWeaponNameFromID(weapon, 16) then 
            triggerClientEvent ( "onGrenadeEvent", root, "text" ) 
            elseif 
            getWeaponNameFromID(weapon, 18) then 
            triggerClientEvent ( "onMolotowEvent", root, "text" ) 
            end 
        end 
    ) 
      
    

    addEventHandler("onPlayerDamage",getRootElement(), 
        function(attacker,weapon,bodypart,loss) 
            if getWeaponNameFromID(weapon) == 16 then 
            triggerClientEvent ( "onGrenadeEvent", root, "text" ) 
            elseif getWeaponNameFromID(weapon) == 18 then 
            triggerClientEvent ( "onMolotowEvent", root, "text" ) 
            end 
        end 
    ) 
      
    

    Didn't test it.

    Show us the client codes, then we can fix those.

  2. Hi,

    I've got some problems with editing my login script (Login script made for: my gamemode)

    This is the code I'm using. The error I get is when I try to click on the edit, the cursor inside the edit isn't showing and I can't write in it...

        createCharacterWindowNameEdit = guiCreateEdit (0.475, 0.095, 0.475, 0.065, "", true, createCharacterWindow) 
            guiEditSetMaxLength (createCharacterWindowNameEdit, 15) 
            guiSetProperty (createCharacterWindowNameEdit, "AlwaysOnTop", "True") 
    

    Picture:

    9bkadf.png

    Thanks, Cornelis.

  3. Coming soon: OMG | Online Multiplayer Game

    The resource

    This resource is another Role Playing Game. This gamemode is a tribute to De simbad de Zeeman speeltuin.

    Features

    Login system (XML Based: 100%, but I want to make it MySQL based)

    Car shop (15%)

    Weapon shop (0%)

    More features coming soon!

    Screenshots

    Login system

    2mqjfr6.png

    343g1ue.png

    2a77wqv.png

    s0v0a0.png

    29dwp7b.png

    Do you have any questions relating to my gamemode? Send me a private message.

  4. Hi,

    I'm creating my own gamemode, but I want to create a screen behind my login window. There is only one problem, it only changes one time. Could somebody help me?

    startCamera = 
    {  
        {1320.6896972656, -951.76672363281, 100.9468614891, 1364.1717529297, -800.80603027344, 75.560821533203}, 
        {149.31686401367, 2386.1716308594, 65.455644607544, 400.84384155273, 2528.552734375, 16.574115753174}, 
        {966.36157226563, 2589.4494628906, 10.156999588013, 966.626953125, 2588.5498046875, 10.503839492798, 0.7}, 
        {-2770.24, -1133.92, 38.14, -2881.06, -907.75, 9.301} 
    } 
      
    function createCameraMatrix () 
        local x, y, z, xx, yy, zz = unpack (startCamera [math.random (#startCamera)]) 
        startCameraTimer = setTimer (setCameraMatrix, 5000, 0, x, y, z, xx, yy, zz) 
    end 
      
    function destroyCameraMatrix () 
        killTimer (startCameraTimer) 
        setCameraTarget (getLocalPlayer ()) 
    end 
      
    addEventHandler ("onClientResourceStart",getResourceRootElement(getThisResource()), 
    function() 
    --Settings 
        createCameraMatrix () 
    end) 
    

    Thanks!

  5. Varez, in your script I have to put coordinates of hospitals right here?

    hospitals = { 
      { 0, 0, 10 }, 
      { 100, 100, 10 } 
      { 200, 400, 10 } 
    } 
    

    //EDIT by Cornelis:

    If I start the resource I get 2 errors:

    - SCRIPT ERROR: myserver/spawnplayer.lua:14: '}; expected (to close '{' at line 11) near '{'

    and

    - WARNING: Loading script failed: myserver/spawnplayers.lua:14 '}' expcted (to close blabla same as first error!

  6. addEventHandler ( "onPlayerWasted", getRootElement( ), 
        function() 
            setTimer( spawnPlayer, 2000, 1, source, 1607.2362060547, 1816.2670898438, 10.8303125) 
        end 
    ) 
    

    So the coords of LV are:

    X = 1607.2362060547

    Y = 1816.2670898438

    Z = 10.8303125

  7. Hi, I have a question about wasted. When somebody died in my server now he spawns at LV hospital, but I want a script that do these things:

    - When u die in SF, go to SF hospital.

    - When u die in LS, go to LS hospital.

    - When u die in LV, go to LV hospital.

    Can somebody help me? This is my simple code now:

    addEventHandler( "onPlayerWasted", getRootElement( ), 
        function() 
            setTimer( spawnPlayer, 2000, 1, source, 1607.2362060547, 1816.2670898438, 10.8303125) 
        end 
    ) 
    

×
×
  • Create New...