Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <hamsandwich>
- #include <cstrike>
- #define PLUGIN "Plugin Name"
- #define VERSION "v0.1"
- #define AUTHOR "Author"
- new T_MODEL[] = "models/player/vipt/vipt.mdl";
- new CT_MODEL[] = "models/player/vipct/vipct.mdl";
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR);
- RegisterHam(Ham_Spawn, "player", "hamPlayerSpawn_Post", 1);
- }
- public plugin_precache()
- {
- new id = read_data( 2 );
- if(get_user_flags(id) & ADMIN_LEVEL_H)
- {
- precache_model(T_MODEL);
- precache_model(CT_MODEL);
- }
- }
- public hamPlayerSpawn_Post(id)
- {
- if(!is_user_alive(id))
- return HAM_IGNORED;
- if(get_user_flags(id) & ADMIN_LEVEL_H)
- {
- switch(get_user_team(id))
- {
- case 1:
- cs_set_user_model(id, "vipt");
- case 2:
- cs_set_user_model(id, "vipct");
- }
- }
- return HAM_IGNORED;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement