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 "Terrorists Random Models"
- #define VERSION "1.0"
- #define AUTHOR "CheezPuff"
- new const g_szTerroristsModels[][] =
- {
- "zombie",
- "tzerk",
- "teroka",
- "zombie2"
- };
- public plugin_precache()
- {
- static szModel[ 192 ];
- for ( new i = 0; i < sizeof g_szTerroristsModels; i++ )
- {
- formatex( szModel, charsmax( szModel ), "models/player/%s/%s.mdl", g_szTerroristsModels[ i ], g_szTerroristsModels[ i ] );
- precache_model( szModel );
- }
- }
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- RegisterHam( Ham_Spawn, "player", "FwdPlayerSpawn_Post", 1 );
- }
- public FwdPlayerSpawn_Post( client )
- {
- if ( !is_user_connected( client ) )
- return 1;
- if(cs_get_user_team( client ) == CS_TEAM_T) cs_set_user_model( client, g_szTerroristsModels[ random( sizeof g_szTerroristsModels ) ] );
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement