All pastes #92414 Raw Edit

Hawk552

public c v1 · immutable
#92414 ·published 2006-07-19 15:14 UTC
rendered paste body
#include <amxmodx>#include <amxmisc>#include <cstrike> #define ACCESS ADMIN_KICK#define MAX_ADMIN_MODELS 1#define MAX_USER_MODELS 2 new g_iUserModel[33] new g_szAdminModels[MAX_ADMIN_MODELS][2][] ={        {"models/player/hhxte/admin_te.mdl","models/player/hhx/admin_ct.mdl"}} new g_szPlayerModels[MAX_USER_MODELS][2][] ={        {"models/player/hhxterror/hhxt1.mdl","models/player/hhxelite/hhxt2.mdl","models/player/hhxarctic/hhxt3.mdl","models/player/hhxguerilla/hhxt4.mdl","models/player/hhxmilitia/hhxt5.mdl"},        {"models/player/hhxurban/hhxct1.mdl","models/player/hhxgsg9/hhxct2.mdl","models/player/hhxsas/hhxct3.mdl","models/player/hhxgign/hhxct4.mdl","models/player/hhxspetsnaz/hhxct5.mdl"}} public plugin_init(){        register_plugin("amx_playermodels","1.0","Hawk552 & Gh0s7 ChiLd")                register_event("ResetHUD","fnEventResetHUD","be")} public plugin_precache(){        new iCount;        for(iCount = 0;iCount < MAX_ADMIN_MODELS;iCount++)        {                precache_model(g_szAdminModels[iCount][0])                precache_model(g_szAdminModels[iCount][1])        }        for(iCount = 0;iCount < MAX_USER_MODELS;iCount++)        {                precache_model(g_szPlayerModels[iCount][0])                precache_model(g_szPlayerModels[iCount][1])        }} public client_putinserver(id)        g_iUserModel[id] = random_num(0 , (is_user_admin(id)? MAX_ADMIN_MODELS : MAX_USER_MODELS)) public fnEventResetHUD(id)        if(get_user_flags(id) & ACCESS)                cs_set_user_model(id,g_szAdminModels[g_iUserModel[id]][get_user_team(id) - 1])        else                cs_set_user_model(id,g_szPlayerModels[g_iUserModel[id]][get_user_team(id) - 1])/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }*/