Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum _: adm_car
- {
- ADM_NAME[33],
- ADM_LVL,
- ADM_GNC_NM,
- ADM_GNC_HH
- }
- new const multiplicadores[][adm_car] =
- {
- { "Basico", ADMIN_LEVEL_F, 3, 5 },
- { "Vip", ADMIN_LEVEL_G, 4, 6 },
- { "Premiun", ADMIN_LEVEL_H, 5, 7 }
- }
- new g_mul[33]
- new g_adm[33]
- public fw_PlayerSpawn_Post(id)
- {
- tipo_adm(id)
- }
- public tipo_adm(id)
- {
- if (!is_user_admin(id)) return PLUGIN_HANDLED;
- for(new i = 0 ; i < sizeof multiplicadores ; i++ )
- {
- if (get_user_flags(id) != multiplicadores[i][ADM_LVL])
- {
- g_adm[id] = i
- g_mul[id] = 1
- break;
- }
- }
- return PLUGIN_HANDLED;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement