Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <cstrike>
- #include <hamsandwich>
- public plugin_init() {
- RegisterHam(Ham_Spawn, "player", "ham_player_spawn", 1)
- }
- public plugin_precache() {
- precache_model("models/player/tero/tero.mdl")
- precache_model("models/player/ct/ct.mdl")
- }
- public ham_player_spawn(id) {
- if (cs_get_user_team(id) == CS_TEAM_T)
- {
- cs_set_user_model(id, tero)
- }
- else if (cs_get_user_team(id) == CS_TEAM_CT)
- {
- cs_set_user_model(id, ct)
- }
- else
- {
- cs_reset_user_model(id)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement