Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include <amxmodx>
- #include <cstrike>
- #include <hamsandwich>
- #define PLUGIN "Player Models"
- #define VERSION "1.0b"
- #define AUTHOR "CheezPuff"
- // make sure that folder you set and nothing big letter or small
- new const g_szModelsCT[ ] = "models/player/CTSkin/CTSkin.mdl"; // Counte-Terrorists Model
- new const g_szModelsT[ ] = "models/player/TSkin/TSkin.mdl"; // Terrorists Model
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- RegisterHam(Ham_Spawn, "player", "fw_spawn", 1);
- }
- public plugin_precache()
- {
- precache_model( g_szModelsCT );
- precache_model( g_szModelsT );
- }
- public fw_spawn( Index )
- {
- if( !is_user_alive( Index ) || is_user_bot( Index ) )
- return;
- if( cs_get_user_team( Index ) == CS_TEAM_CT )
- {
- cs_set_user_model( Index, "CTSkin" ); // "AddYourFolderSkin"
- }
- else if( cs_get_user_team( Index ) == CS_TEAM_T )
- {
- cs_set_user_model( Index, "TSkin" ); //"AddYourFolderSkin"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement