Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Forcing a specific mod folder
#1
It's really easy.
Just put this script somewhere in your init()
Code:
if(tolower(getdvar("fs_game")) != "mods/mp_modname") //the mod name you need to put here should always be lower case
{
    iprintlnbold("Wrong mod folder name, it should be: mp_MODNAME");
    iprintlnbold("Change the mod name or you won't be able to play.");
    wait 5;
    exitlevel(false);
}

This will prevent people from having to redownload the mod every time they join another server, because admins are not free to change the mod folder name anymore.

If you use this give me, Pozzuh, credits.
[Image: MaEIQ.png]
Reply

#2
Will AssertMsg(" "); work ?
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#3
AFAIK it does not.
[Image: MaEIQ.png]
Reply

#4
nice pussuh OMA
[Image: lQDUjba.jpg]
Reply

#5
OMA Heart this.
Reply

#6
This is from AVP cod4 mod ..
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#7
(08-09-2011, 12:22)Se7en Wrote: This is from AVP cod4 mod ..

Nope, it's just a well known dvar :p
Reply

#8
Ok, Nyan Cat
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#9
nice find, thanks
Reply

#10
(08-09-2011, 12:22)Se7en Wrote: This is from AVP cod4 mod ..

This is originally found by Novemberdobby, INSANE (maker of AVP) asked how Dobby did this and in response Dobby made a 'tutorial' on his forum (wich is now down) explaining this
[Image: MaEIQ.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] hotkey Bind and execute iwd files in main folder of game! raminr63 10 5,523 10-10-2012, 16:28
Last Post: Pozzuh
  Empty xmodel folder? Blue_Solo 2 2,953 09-03-2012, 02:39
Last Post: Blue_Solo
  [Request] Can someone upload a 'iw_06' from there MAIN folder please. b0b722 5 4,537 07-25-2012, 22:56
Last Post: Arteq
  [Request] specific model of clothing [Z00MBY] Alex 40 17,356 04-22-2012, 20:15
Last Post: [Z00MBY] Alex
  running third server via different folder Snowy Leopard 8 4,469 02-01-2012, 10:50
Last Post: Snowy Leopard
  [Tutorial] Dump Stuff into Game folder Yamato 10 7,934 10-12-2011, 17:26
Last Post: d0h!
  [Request] maps folder Scripts18 10 5,123 09-03-2011, 22:51
Last Post: Lemon
  COD4 sound folder for BO? Scripts18 11 7,223 08-23-2011, 16:06
Last Post: Nekochan
  Problems with specific BO mods mans123 4 3,332 08-18-2011, 03:48
Last Post: JariZ
  [Request] Folder ONLY with removed weather effects NOT subjects! Demyxxx 0 1,685 07-06-2011, 10:15
Last Post: Demyxxx

Forum Jump:


Users browsing this thread:
3 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.