Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <cs_player_models_api>
- #include <hamsandwich>
- public plugin_init()
- {
- RegisterHam(Ham_Spawn,"player","spawnovan", 1)
- // Add your code here...
- }
- public plugin_precache()
- {
- precache_model("models/player/sas/sas.mdl")
- }
- public spawnovan(id)
- {
- if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
- {
- cs_set_player_model(id, "sas")
- }
- else
- {
- cs_reset_player_model(id)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment