Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" killall system");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" admin system one");
- print("----------------------------------\n");
- }
- #endif
- CMD:killall(playerid, params[])
- {
- if(PlayerInfo[playerid][AdminLevel] >= 3)
- {
- foreach(Player, i)
- {
- SetPlayerHealth(i, 0);
- }
- SetPlayerHealth(playerid, 0);
- new string[128], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "Administrator {FF0000}%s {FFFFFF}has killed all players", name);
- SendCommandToAdmins(playerid,"/killall");
- }
- else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast Admin Level 3 or server owner to use this command");
- return 1;
- }
- CMD:killall(playerid, params[])
- {
- if(PlayerInfo[playerid][AdminLevel] >= 3)
- {
- foreach(Player, i)
- {
- SetPlayerHealth(i, 0);
- }
- SetPlayerHealth(playerid, 0);
- new string[128], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "Administrator {FF0000}%s {FFFFFF}has killed all players", name);
- SendCommandToAdmins(playerid,"/killall");
- }
- else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast Admin Level 3 or server owner to use this command");
- return 1;
- }
- CMD:annc(playerid, params[])
- {
- if(PlayerInfo[playerid][AdminLevel] >= 3)
- {
- new msg[200];
- if (sscanf(params, "s[200]", msg)) return SendClientMessage(playerid, COLOR_RED, "Usage: /annc [message/announce]");
- if (IsPlayerConnected(playerid))
- {
- GameTextForAll(msg, 5000, 5);
- SendCommandToAdmins(playerid,"/annc");
- }
- }
- else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast admin level 3 to use this command");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement