merging the Gamemode with Scriptfile
#1

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;
    }
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)