Linking filterscript to gamemode?
#1

Is it possible to link a variable made in your filterscript to a gamemode?

I have an enum defined in my gamemode, like most people:

pawn Код:
enum pInfo
{
// blablablabl
};
new PlayerInfo[MAX_PLAYERS][pInfo];
So then I can do like:

pawn Код:
PlayerInfo[playerid][pDeaths]++;
But we all know if I do this in my filterscript it will give me an error.
So what if I make a new enum in my filterscript, the same as in my gamemode. Then I do in my filterscript

pawn Код:
PlayerInfo[playerid][pDeaths]++;
And when the player disconnects it saves his pDeaths in the gamemode, but will it also add the pDeaths that are added in the filterscript or not?

Thanks.
Reply
#2

Why don't you test it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)