public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/load", true))
{
SendRconCommand("loadfs cars");
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Loading cars.amx");
return 1;
// Returning 1 informs the server that the command has been processed.
// OnPlayerCommandText won't be called in other scripts.
}
return 0;
// Returning 0 informs the server that the command hasn't been processed by this script.
// OnPlayerCommandText will be called in other scripts until one returns 1.
// If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.
}
SendRconCommand("loadfs cars");
if(IsPlayerAdmin(playerid))SendRconCommand("loadfs cars");
SendRconCommand("loadfs cars");
SendRconCommand("filterscripts cars.amx");
SendRconCommand("filterscripts cars"); |
##/rcon loadfs - Loads the given filterscript (example: /rcon loadfs adminfs).
## /rcon unloadfs - Unload the given filterscript (example: /rcon unloadfs adminfs).
## /rcon reloadfs - Reloads the given filterscript (example: /rcon reloadfs adminfs).