Transfer A Filterscript Into A 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Transfer A Filterscript Into A GameMode (
/showthread.php?tid=166812)
Transfer A Filterscript Into A GameMode -
Hal - 10.08.2010
I have switched to a light RP script, so i am able to edit it, because i cannot stand GF. So i need to use a vehicle system, that has ownership ect.
https://sampforum.blast.hk/showthread.php?tid=8974 i was thinking about that one, (tAXi's) but i really do not like FS's. And i would like to add some more commands to it, and the easiest way to do that, without includes ect, i need to put it into my GM.
So. How would i do that? i know i can copy all the #define, #new , and #forward ; but its the onplayerconnect, and onfilterscriptinit i dont know what to do there.
oh, the FS also uses strcmp and my GM uses zcmd. I dont want (know how) to convert the commands, or would it still be copy and paste?
Thanks
+ whoever helps me, gets a helper cookie
Re: Transfer A Filterscript Into A GameMode -
ScottCFR - 10.08.2010
Just transfer the functions. Like OnFilterScriptInit goes to OnGameModeInit and so on. Not hard, but I recommend to do that. Less FS less memory usages.
Re: Transfer A Filterscript Into A GameMode -
Hal - 10.08.2010
Quote:
Originally Posted by ScottCFR
Just transfer the functions. Like OnFilterScriptInit goes to OnGameModeInit and so on. Not hard, but I recommend to do that. Less FS less memory usages.
|
Thanks, i am too damn tired to do that now, so ill do it tomorrow, and see how it goes
YOU GET A HELPER COOKIE, /me gives cookie
Re: Transfer A Filterscript Into A GameMode -
ScottCFR - 10.08.2010
No probs.