Jump to content

OnGameModeInit

Descriere:

Acest callback se declanseaza cand porneste gamemode-ul.

 

Parametri:

Acest callback nu are parametri.


Return Values:

  • 0 - Will prevent other filterscripts from receiving this callback.
  • 1 - Indicates that this callback will be passed to the next filterscript.
  • It is always called first in gamemode.

 

https://www.ro-ph.com/img/other/warning-orange.png

Note

This function can also be used in a filterscript to detect if the gamemode changes with RCON commands like changemode or gmx, as changing the gamemode does not reload a filterscript.


Example Usage:

public OnGameModeInit()
{
    print("Gamemode started!");
    return 1;
}

 

forward OnGameModeInit();
  Report Document
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.