-
Notifications
You must be signed in to change notification settings - Fork 32
UnLoadFilterScript
iFarbod edited this page Jun 28, 2014
·
2 revisions
Unloads a Filterscript.
Parameters:
- scriptname : Filterscript name to unload.
Return Values:
- Returns 0 if server version unknown.
- Returns 0 also if filterscript is unloaded successfully.
Example Usage :
// Fixing the /rcon unloadfs [Scriptname] Bug (Can't unload Filterscripts contain Spaces).
// /unloadfs [Script Name] (Spaces accepted!)
CMD:unloadfs(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: /unloadfs [Script name]");
UnLoadFilterScript(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