SA-MP Forums Archive
merging the Gamemode with Scriptfile - 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: merging the Gamemode with Scriptfile (/showthread.php?tid=179140)



merging the Gamemode with Scriptfile - Hamza' - 25.09.2010

Well, I just got scriptfile, and I want to put it into Gamemode, but it will perhaps cause a choas, so, is there any way to type like
#include <GAMEMODE NAME>
Or something
So I can use the gamemode feature into Scriptfile like

This command exist in scriptfile, except one line, look below
pawn Код:
if(!strcmp("/specoff", cmdtext, false, 9))
    {
        if (gTeam[playerid] == 0) // This line only works in gamemode..
        {
            if(Spectating[playerid] == 1)
            {
                TogglePlayerSpectating(playerid, 0);
                SendClientMessage(playerid, 0xFFFFFFAA, "You stopped spectating.");
                return 1;
            }
            else return SendClientMessage(playerid, 0xFF3300AA, "ERROR: You aren't spectating anyone!");
        }
        return 1;
    }



Re: merging the Gamemode with Scriptfile - Mike_Peterson - 25.09.2010

im not sure about it, im sure its not #include <...> <> = .inc's only

maybe something like #include /gamemode/grandlarceny but i dont think its gonna work