Posts: 61
Threads: 19
Joined: Nov 2013
Reputation:
0
Happy new Year everyone!
Best wishes to all.
I've got a question; is there a way to run a command from a gamemode in a filterscript?
For example when a player uses /hello (from the filterscript) it will run also /commands (described in the gamemode).
Posts: 1,534
Threads: 129
Joined: Jan 2012
Reputation:
0
Just load the filterscript?
Posts: 61
Threads: 19
Joined: Nov 2013
Reputation:
0
Ty for the answers, but it's not where I'm looking for.
For example when I create a filterscript for driving lessons, I would like to run the command /getlic which is described in the gamemode. So I do not have to import the whole saving system in my filterscript to set Playerinfo[playerid][pDriverlic] = 1.
Is that possible?
Posts: 61
Threads: 19
Joined: Nov 2013
Reputation:
0
Does anyone know how to do this?
Posts: 61
Threads: 19
Joined: Nov 2013
Reputation:
0
Ty for the answer. Should I do:
CallRemoteFunction("cmd_getlic", "is", playerid");
Will this automatically call the command /getlic listed in the gamemode from the filterscript?
Posts: 1,046
Threads: 29
Joined: Mar 2010
Just return 0 at your filterscript. The server will think, that the command does not exist and proceeds to other scripts including your game mode.