-
Notifications
You must be signed in to change notification settings - Fork 32
LoadFilterScript
iFarbod edited this page Jun 28, 2014
·
2 revisions
Loads a Filterscript.
Parameters:
- scriptname : Filterscript name to load.
Return Values:
- Returns 0 if server version unknown.
- Returns 0 also if filterscript is loaded successfully.
Example Usage :
// Fixing the /rcon loadfs [Scriptname] Bug (Can't load Filterscripts contain Spaces).
// /loadfs [Script Name] (Spaces accepted!)
CMD:loadfs(playerid, params[])
{
new
scriptname[64];
if(!IsPlayerAdmin(playerid)) return 0; // Checking is player is already logged into RCON.
if(sscanf(params, "s[64]", scriptname)) return SendClientMessage(playerid, 0xFF0000FF, "Syntax: /loadfs [Script name]");
LoadFilterScript(scriptname);
return 1; // Returning 1 to process Command in zCMD. Avioding "SERVER: Unknown Command." Message.
}
- Home
-
Natives
- Execute
- File functions
- Directory functions
- Max player/npc change at runtime
- Filterscript functions
- Server rule modifications
- Server settings
- Player position sync bounds
- Modifying RCON commands
- Per AMX function calling
- Broadcasting console messages
- YSF Settings
- Nickname
- Classes
- Timers
- Per player functions
- Actors
- Scoreboard manipulation
- Pause functions
- Objects get - global
- Objects get - player
- Special for attached objects
- RakNet ban functions
- RakNet
- Exclusive RPC broadcast
- Vehicle functions
- Gangzones - Global
- Gangzones - Player
- Textdraws - Global
- Textdraws - Player
- 3DTexts - Global
- 3DTexts - Player
- Menu
- Pickups - Global
- Y_Less's model sizes inc
- Developer functions
- Formatting
- Callbacks
- Definitions
- Enumerators
- YSF.cfg