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>
- new const ctModels[] = "models/player/ct_lwf_ctf/ct_lwf_ctf.mdl";
- new const ttModels[] = "models/player/tt_lwf_ctf/tt_lwf_ctf.mdl";
- public plugin_precache()
- {
- precache_model(ctModels)
- precache_model(ttModels)
- }
- public plugin_init()
- {
- RegisterHam(Ham_Spawn, "player", "pfn_Spawn", 1)
- }
- public pfn_Spawn(id)
- {
- if(!is_user_alive(id))
- return
- switch(get_user_team(id))
- {
- case 1: cs_set_user_model(id, "tt_lwf_ctf")
- case 2: cs_set_user_model(id, "ct_lwf_ctf")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement