Jump to content

DiSaMe

Distinguished Members
  • Posts

    1,461
  • Joined

  • Last visited

  • Days Won

    34

Posts posted by DiSaMe

  1. Thank you both! Now I can create my own gamemode :) It looks like LUA is too case-sensitive because in Pawn or C I didn't have to think about that. But perhaps it looks like because in Pawn that I used for SA-MP commands that have capital letters start with them too. And C - I didn't script much :)

    edit: and thanks to those who wanted to help me but were late :)

  2. I have searched but found nothing that could help me. I also have looked at Hay gamemode code but I still can't solve the problem.

    This is very stupid question because code is so small. And I can't make it work. I want to start making gamemode from very simple code. Here it is:

    function joined ( ) 
        fadeCamera(source,true) 
        spawnPlayer(source,0.0,0.0,5.0) 
    end 
      
    AddEventHandler( "onPlayerJoin", getRootElement(), joined ) 
    

    Nothing happens when I connect to the server. Could you help me to make player just spawn when connected?

    And sorry for my English. I'm from Lithuania.

×
×
  • Create New...