#include // This is a comment // uncomment the line below if you want to write a filterscript #define FILTERSCRIPT #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Amunation blocker by WeeDarr [2007]"); print(" Loaded sucessfully"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/benable", cmdtext, true, 10) == 0) { if (!(IsPlayerAdmin(playerid))) { SendClientMessage(playerid, 0xFF0000AA, "Only admins are authorized to use this command!"); return 1; } else CreateObject(972,289.475,-80.5564,998.737,0,0,0); CreateObject(972,290.913665,-109.500907,1000.747253,0,0,0); CreateObject(972,288.326599,-34.553295,1000.727478,0,0,0); SendClientMessage(playerid, 0xFF0000AA, "Blocker enabled"); return 1; } if (strcmp("/bdisable", cmdtext, true, 10) == 0) { if (!(IsPlayerAdmin(playerid))) { SendClientMessage(playerid, 0xFF0000AA, "Only admins are authorized to use this command!"); return 1; } else DestroyObject(1); DestroyObject(2); DestroyObject(3); SendClientMessage(playerid, 0xFF0000AA, "Blocker disabled"); return 1; } return 0; }