Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- #include <fun>
- #define PLUGIN "Who & Benefits"
- #define VERSION "1.0"
- #define AUTHOR "KENNY."
- #pragma tabsize 0
- #define MAX_GROUPS 10
- new g_groupNames[MAX_GROUPS][] = {
- "Detinator Server",
- "Manager Server",
- "Gold Member",
- "Silver Member",
- "Bronze Member",
- "Supreme Admin",
- "Administrator",
- "Moderator",
- "Helper",
- "Slot"
- }
- new g_groupFlags[MAX_GROUPS][] = {
- "abcdefghijklmnopqrsux",
- "abcdefghijklmnopqrsu",
- "bcdefimnjpt",
- "bcdefimnjpr",
- "bcdefimnjpo",
- "bcdefimnjp",
- "bcdefimjp",
- "bcdefimj",
- "bceij",
- "b"
- }
- new g_groupFlagsValue[MAX_GROUPS];
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- register_event("DeathMsg", "RulsDeath", "a");
- register_concmd("amx_who", "cmdWho", 0);
- register_concmd("admin_who", "cmdWho", 0);
- for(new i = 0; i < MAX_GROUPS; i++) {
- g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
- }
- }
- public cmdWho(id) {
- // Verificam daca userul este online, daca nu... ne oprim din executie
- if(!is_user_connected(id)) { return PLUGIN_HANDLED; }
- new players[32], inum, player, name[32], i, a;
- get_players(players, inum);
- console_print(id, "==============================");
- for(i = 0; i < MAX_GROUPS; i++) {
- console_print(id, "---------- [%d] %s ----------", i+1, g_groupNames[i])
- for(a = 0; a < inum; ++a) {
- player = players[a]
- get_user_name(player, name, 31);
- if(get_user_flags(player) == g_groupFlagsValue[i]) {
- console_print(id, ">>> %s", name);
- }
- }
- }
- console_print(id, "==============================")
- return PLUGIN_HANDLED
- }
- public RulsDeath()
- {
- new idKiller = read_data(1);
- if (get_user_flags(idKiller) == read_flags("abcdefghijklmnopqrsux"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 6000, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 55);
- set_user_armor(idKiller, get_user_armor(idKiller) + 55);
- }
- else if (get_user_flags(idKiller) == read_flags("abcdefghijklmnopqrsu"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 5000, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 50);
- set_user_armor(idKiller, get_user_armor(idKiller) + 50);
- }
- else if (get_user_flags(idKiller) == read_flags("bcdefimnjpt"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 4500, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 40);
- set_user_armor(idKiller, get_user_armor(idKiller) + 40);
- }
- else if (get_user_flags(idKiller) == read_flags("bcdefimnjpr"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 3500, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 35);
- set_user_armor(idKiller, get_user_armor(idKiller) + 35);
- }
- else if (get_user_flags(idKiller) == read_flags("bcdefimnjpo"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 2500, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 25);
- set_user_armor(idKiller, get_user_armor(idKiller) + 25);
- }
- else if (get_user_flags(idKiller) == read_flags("bcdefimnjp"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 1500, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 15);
- set_user_armor(idKiller, get_user_armor(idKiller) + 15);
- }
- else if (get_user_flags(idKiller) == read_flags("bcdefimjp"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 1000, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 10);
- set_user_armor(idKiller, get_user_armor(idKiller) + 10);
- }
- else if (get_user_flags(idKiller) == read_flags("bcdefimj"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 1000, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 10);
- set_user_armor(idKiller, get_user_armor(idKiller) + 10);
- }
- else if (get_user_flags(idKiller) == read_flags("bceij"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 1000, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 10);
- set_user_armor(idKiller, get_user_armor(idKiller) + 10);
- }
- else if (get_user_flags(idKiller) == read_flags("bceij"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 1000, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 10);
- set_user_armor(idKiller, get_user_armor(idKiller) + 10);
- }
- else if (get_user_flags(idKiller) == read_flags("b"))
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 1000, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 10);
- set_user_armor(idKiller, get_user_armor(idKiller) + 10);
- }
- else if (get_user_flags(idKiller) == read_flags("z")) // players
- {
- cs_set_user_money(idKiller, cs_get_user_money(idKiller) + 1000, 1);
- set_user_health(idKiller, get_user_health(idKiller) + 10);
- set_user_armor(idKiller, get_user_armor(idKiller) + 10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement