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 < hamsandwich >
- #define PLUGIN "Player skins"
- #define VERSION "v1.0"
- #define AUTHOR "xflane"
- new const CtMdl[ ] = "models/player/Ct-Model/Ct-Model.mdl";
- new const tMdl[ ] = "models/player/T-Model/T-Model.mdl";
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- RegisterHam( Ham_Spawn, "player", "FwdPlayerSpawn_Post", 1 );
- }
- public plugin_precache()
- {
- precache_model( CtMdl );
- precache_model( tMdl );
- }
- public FwdPlayerSpawn_Post( client )
- {
- if ( !is_user_alive( client ) )
- return 1;
- switch(cs_get_user_team(client)){
- case CS_TEAM_CT: cs_set_user_model( client, "Ct-Model");
- case CS_TEAM_T: cs_set_user_model( client, "T-Model");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement