728x90
Quote
mc_addweaponclass <classname> <worldmodel> <viewmodel> - Set all weapons of classname to have specified world and view models.
mc_addweaponindex <index> <worldmodel> <viewmodel> - Set weapon at index to have specified world and view models.
mc_addweaponuserid <userid> <class> <worldmodel> <viewmodel> - Set player with userid with weapon of class to have specified world and viewmodels
mc_addweaponsteamid <steamid> <class> <worldmodel> <viewmodel> - Set player with steamid with weapon of class to have specified world and viewmodels
mc_addweaponteam <team> <class> <worldmodel> <viewmodel> - Set all players on specified team with weapon of class to have specified world and viewmodels
mc_addplayeruserid <userid> <model> - Set player with userid to have specified player model
mc_addplayersteamid <steamid> <model> - Set player with steamid to have specified player model
mc_addplayerteam <team> <model> - Set all players on specified team to have specified player model
mc_delweaponclass <classname> - No longer force world/view models on classname
mc_delweaponindex <index> - No longer force world/view models on index
mc_delweaponuserid <userid> <class> - No longer force world/view models on userid with weapon of class
mc_delweaponsteamid <steamid> <class> - No longer force world/view models on steamid with weapon of class
mc_delweaponteam <team> <class> - No longer force world/view models on all players of specified team
mc_delplayeruserid <userid> - No longer force player model on userid
mc_delplayersteamid <steamid> - No longer force player model on steamid
mc_delplayerteam <team> - No longer foce player model on all players of specified team
mc_addweaponindex <index> <worldmodel> <viewmodel> - Set weapon at index to have specified world and view models.
mc_addweaponuserid <userid> <class> <worldmodel> <viewmodel> - Set player with userid with weapon of class to have specified world and viewmodels
mc_addweaponsteamid <steamid> <class> <worldmodel> <viewmodel> - Set player with steamid with weapon of class to have specified world and viewmodels
mc_addweaponteam <team> <class> <worldmodel> <viewmodel> - Set all players on specified team with weapon of class to have specified world and viewmodels
mc_addplayeruserid <userid> <model> - Set player with userid to have specified player model
mc_addplayersteamid <steamid> <model> - Set player with steamid to have specified player model
mc_addplayerteam <team> <model> - Set all players on specified team to have specified player model
mc_delweaponclass <classname> - No longer force world/view models on classname
mc_delweaponindex <index> - No longer force world/view models on index
mc_delweaponuserid <userid> <class> - No longer force world/view models on userid with weapon of class
mc_delweaponsteamid <steamid> <class> - No longer force world/view models on steamid with weapon of class
mc_delweaponteam <team> <class> - No longer force world/view models on all players of specified team
mc_delplayeruserid <userid> - No longer force player model on userid
mc_delplayersteamid <steamid> - No longer force player model on steamid
mc_delplayerteam <team> - No longer foce player model on all players of specified team
Example
block load |
{ |
// 모든 글록모델을 aug로 바꿈 |
mc_addweaponclass weapon_glock weapons/w_rif_aug.mdl weapons/v_rif_aug.mdl |
// 플레이어 스팀아이디로 glock을 aug로 |
mc_addweaponsteamid "STEAM_0:1111" weapon_glock weapons/w_rif_aug.mdl weapons/v_rif_aug.mdl |
// 모든 테러리스트들의 glock을 aug로 |
mc_addweaponteam #t weapon_glock weapons/w_rif_aug.mdl weapons/v_rif_aug.mdl |
// 스팀아이디로 플레이어 모델 바꾸기 |
mc_addplayersteamid "STEAM_0:1111" players/t_leet.mdl |
// 2라는 건 팀코드 2 = T , 3 = CT 0 = Spector |
mc_addplayerteam 2 players/t_leet.mdl |
} |
event player_connect |
{ |
// 글록 모델을 aug 로 바꿈 |
es mc_addweaponuserid event_var(userid) weapon_glock weapons/w_rif_aug.mdl weapons/v_rif_aug.mdl |
// 플레이어 모델을 테러리스트로 바꿈 |
es mc_addplayeruserid event_var(userid) players/t_leet.mdl |
} |
event player_spawn |
{ |
es_xset w_index 0 |
es playerget weaponindex w_index event_var(userid) weapon_glock |
// 특정한 무기를 aug로 바꿈 |
if (server_var(w_index) > "0") then mc_addweaponindex server_var(w_index) weapons/w_rif_aug.mdl weapons/v_rif_aug.mdl |
} |