Results 1 to 4 of 4

Thread: Scripts

  1. #1
    ... connecting
    Join Date
    Oct 2018
    Posts
    1
    Thanks
    0
    Thanked 2 Times in 1 Post

    Scripts

    in which folder can i put my scripts?
    using cod2

  2. The Following 2 Users Say Thank You to hitman90 For This Useful Post:

    kubislav23 (8th October 2018),kung foo man (8th October 2018)

  3. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    1,958
    Thanks
    1,877
    Thanked 1,056 Times in 733 Posts
    timescale 0.01

  4. #3
    Private
    Join Date
    Jan 2018
    Location
    Somewhere
    Posts
    37
    Thanks
    10
    Thanked 20 Times in 16 Posts
    You have to put them in maps/mp/gametypes.
    then you've to call the script from the game type you want. for example, if you want to use somescript.gsc and your server has TDM gametype, then you have to open TDM.gsc and add a line after main, just like this:

    Code:
    /*	Team Deathmatch */
    main()
    {
    ......
    
    		level.callbackStartGameType = maps\pam\tdm::Callback_StartGameType;
    		level.callbackPlayerConnect = maps\pam\tdm::Callback_PlayerConnect;
    		level.callbackPlayerDisconnect = maps\pam\tdm::Callback_PlayerDisconnect;
    		level.callbackPlayerDamage = maps\pam\tdm::Callback_PlayerDamage;
    		level.callbackPlayerKilled = maps\pam\tdm::Callback_PlayerKilled;
    		maps\mp\gametypes\_callbacksetup::SetupCallbacks();
                    maps\mp\gametypes\scriptname::Init();

    If you face any problems, I can do it manually for you through TeamViewer.

  5. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    1,958
    Thanks
    1,877
    Thanked 1,056 Times in 733 Posts
    Also don't forget that we want to see some nice scripted pics. Thanks!
    timescale 0.01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •