//---------------------------------------- // Project Commands Advanced // Credits // - DJTunes // Information // - 4th of 5th Filterscript // - Going Deeper into the FS scripting game //---------------------------------------- // Defines = #define FILTERSCRIPT #if defined FILTERSCRIPT //---------------------------------------- // Includes = #include //---------------------------------------- public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Advanced Commands Loading....... Load Complete!"); print("--------------------------------------\n"); return 1; } //---------------------------------------- public OnFilterScriptExit() { print("\n--------------------------------------"); print(" Advanced Commands Un-Loading....... Un-Load Complete!"); print("--------------------------------------\n"); return 1; } //---------------------------------------- // Do not do anything with these: #else #endif //---------------------------------------- // This section is what makes this filterscript work! :) public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/kickme", true) == 0) { //This command will kick the player who enters this command Kick(playerid); return 1; } if(strcmp("/killme", cmdtext, true)) { //This command will kill the player who enters this command SetPlayerHealth(playerid, 0.0); return 1; } return 0; } //----------------------------------------