SA-MP Forums Archive
Filterscripts to GameMode - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Filterscripts to GameMode (/showthread.php?tid=480865)



Filterscripts to GameMode - saikumar - 13.12.2013

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


Re: Filterscripts to GameMode - ProjectNewYork - 13.12.2013

Simple...

1. Add These functions

Код:
 OnGameModeInit()

and

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


Re: Filterscripts to GameMode - saikumar - 13.12.2013

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


Re: Filterscripts to GameMode - saikumar - 13.12.2013

Please Anybody Answer Me


Re: Filterscripts to GameMode - SilentSoul - 13.12.2013

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;
}



Re: Filterscripts to GameMode - PowerPC603 - 13.12.2013

Just add the filterscript to your server.cfg file.

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


Re: Filterscripts to GameMode - saikumar - 13.12.2013

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