18.02.2015, 00:52
hey, sorry for my bad english
i have a question.. how can i get information from gamemode then i put then in filterscript , Someone say using CallRemoteFunction
example:
then the variable in gamemode want to put in filterscript
can someone explain ?
i have a question.. how can i get information from gamemode then i put then in filterscript , Someone say using CallRemoteFunction
example:
Код:
// In Gamemode CMD:dm(playerid, params[]) { InDM[playerid] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "You are in DM"); return 1; }
Код:
// In Filterscript CMD:car(playerid, params[]) { if(InDM[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "You can't spawn car when in DM"); return 1; }