SkatCh

Members
  • Content Count

    366
  • Joined

  • Last visited

Posts posted by SkatCh


  1. guys please i have a question i want to add something in my script which is when a player die in LS he will spawn in LS hospital and if he die in LV ---------- Spawn LV hospital , SF ----------- spawn SF hospital etc ....


  2. Sorry i try and i uploaded my resource .luac but when my friend join my sever he find two file inside the resource folder .luac and lua so he can edit my script i want players see just the luac file (encrypted one)


  3. Guys please i need some help , i add many scripts in my server resource folder and i want when players join my server and download all my resources they will find it crypted so they can't open it example : .luac

    i am sorry about my english skills.


  4. hello there , guys please can anyone tell me what's wrong here when i try to register an other account this Error appear :

    Warning : Login\Loginpanel_server.lua:45: access denied @ ' addAccount'

    Script login panel :

    -- Registration here 
    function registerPlayer(username,password,passwordConfirm) 
        if not (username == "") then 
            if not (password == "") then 
                if not (passwordConfirm == "") then 
                    if password == passwordConfirm then 
                        local account = getAccount (username,password) 
                        if (account == false) then 
                            local accountAdded = addAccount(tostring(username),tostring(password)) 
                            if (accountAdded) then 
                                triggerClientEvent(source,"hideRegisterWindow",getRootElement()) 
                                outputChatBox ("#0000FF* #FFFFFFYou have sucessfuly registered! [username: #ABCDEF" .. username .. " #FF0000| #FFFFFFPassword: #ABCDEF" .. password .. "#FFFFFF]",source,255,255,255,true ) 
                                setTimer(outputChatBox,800,1,"#0000FF* #FFFFFFYou can now login with your new account.",source,255,255,255,true ) 
                            else 
                                outputChatBox ("#0000FF* #FFFFFFAn unknown error has occured! Please choose a different username/password and try again.",source,255,255,255,true ) 
                            end 
                        else 
                            outputChatBox ("#0000FF* #FFFFFFError! An account with this username already exists!",source,255,255,255,true ) 
                        end 
                    else 
                        outputChatBox ("#0000FF* #FFFFFFError! Passwords do not match!",source,255,255,255,true) 
                    end 
                else 
                    outputChatBox ("#0000FF* #FFFFFFError! Please confirm your password!",source,255,255,255,true) 
                end 
            else 
                outputChatBox ("#0000FF* #FFFFFFError! Please enter a password!",source,255,255,255,true) 
            end 
        else 
            outputChatBox ("#0000FF* #FFFFFFError! Please enter a username you would like to register with!",source,255,255,255,true) 
        end 
    end 
    


  5. No, I want to stop it forever not from the console. I mean when a player joins my server he can't use F1 etc.... Just play not Freeroam GUI. more than that when i try to remove this from mtaserver.conf :

    "play" startup="1" protected="0"/> 
    

    Then when I join the server I can't see nothing.