Filterscripts to GameMode
#1

Hello Guy
i want to know how to script Filterscripts to Gamemode??
Thanks in advance for Answering
Reply
#2

Simple...

1. Add These functions

Код:
 OnGameModeInit()

and

OnGameModeExit()
Then put the FS into ur gamemode folder and u r done!
Reply
#3

Quote:
Originally Posted by ProjectNewYork
Посмотреть сообщение
Simple...

1. Add These functions

Код:
 OnGameModeInit()

and

OnGameModeExit()
Then put the FS into ur gamemode folder and u r done!
i already scripted a gamemode and i want an another filterscript to be added in my gamemode..
Reply
#4

Please Anybody Answer Me
Reply
#5

Search for
pawn Код:
#define FILTERSCRIPT
#if defined FILTERSCRIPT
and remove them , also move all codes inside
pawn Код:
public OnFilterScriptInit()
{
    return 1;
}
public OnFilterScriptExit()
{
    return 1;
}
To
pawn Код:
public OnGameModeInit()
{
    return 1;
}

public OnGameModeExit()
{
    return 1;
}
Reply
#6

Just add the filterscript to your server.cfg file.

Unless both script communicate with eachother through CallRemoteFunction, you should be fine.
Reply
#7

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
Search for
pawn Код:
#define FILTERSCRIPT
#if defined FILTERSCRIPT
and remove them , also move all codes inside
pawn Код:
public OnFilterScriptInit()
{
    return 1;
}
public OnFilterScriptExit()
{
    return 1;
}
To
pawn Код:
public OnGameModeInit()
{
    return 1;
}

public OnGameModeExit()
{
    return 1;
}
thankyou verymuch for your clear explaination
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)