ItsMods

Full Version: How To Call A Different file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How would i call upon this file i have attached.(it just contains a .gsc, it wouldnt let me just upload the .gsc)

self thread maps\mp\gametypes\_menu::init();?

Would I put it under OnPlayerSpawned()? or connect? or init?(in _rank)

[attachment=1530]
(01-30-2012, 03:16)ScHmIdTy56789 Wrote: [ -> ]How would i call upon this file i have attached.(it just contains a .gsc, it wouldnt let me just upload the .gsc)

self thread maps\mp\gametypes\_menu::init();?

Would I put it under OnPlayerSpawned()? or connect? or init?(in _rank)

Since the script is checking for PlayerConnect and PlayerSpawned itself I would put it on init.
This depends on what the function does, You just call it whenever you need it. In this case I would load it on Init() because the file is using its own OnPlayerSpawned/Connected functions.