Jump to content

Server Name - Help!


Recommended Posts

Posted

Well,

I want to create a small gamemode but like DayZ ( Not zombies or DayZ )

Like when you change the gamemode name the gamemode stops working, any ideas how I can do this : ?

Posted
prefix = "Your gamemode name | " 
addEventHandler("onResourceStart", resourceRoot,  
  function() 
    if getResourceName(source):sub(1, #prefix) == prefix then else 
      cancelEvent(true, "Incorrect name prefix - Expected '"..prefix.."', got '"..getResourceName(source):sub(1, #prefix).."'") 
    end 
  end 
) 

Posted

--[[prefix = "Your gamemode name | " 
addEventHandler("onResourceStart", resourceRoot, 
  function() 
    if getResourceName(source):sub(1, #prefix) == prefix then else 
      cancelEvent(true, "Incorrect name prefix - Expected '"..prefix.."', got '"..getResourceName(source):sub(1, #prefix).."'") 
    end 
  end 
)]]-- 

just mark the lines with --

Posted
--[[prefix = "Your gamemode name | " 
addEventHandler("onResourceStart", resourceRoot, 
  function() 
    if getResourceName(source):sub(1, #prefix) == prefix then else 
      cancelEvent(true, "Incorrect name prefix - Expected '"..prefix.."', got '"..getResourceName(source):sub(1, #prefix).."'") 
    end 
  end 
)]]-- 

just mark the lines with --

What???

Thanks, the

prefix - Do I have to change "You gamemode name | " to e.g. "MyGamemode"

Change it to your resource name.

Posted
if u are using the DayZ gamemode replace what i said and then go in meta.xml and search for name=[Your GM name]

What you posted before makes no sense. And he's not using DayZ.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...