PDA

View Full Version : Scripts



hitman90
7th October 2018, 11:54
in which folder can i put my scripts?
using cod2

kung foo man
8th October 2018, 13:13
10 minutes of noob2pro https://killtube.org/showthread.php?359-VIDEO-rotating-brushmodels

Polat
8th October 2018, 20:29
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:


/* 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.

kung foo man
9th October 2018, 14:08
Also don't forget that we want to see some nice scripted pics. Thanks!