|
楼主 |
发表于 2005-6-25 09:43:58
|
显示全部楼层
来自 中国–辽宁–沈阳
- public chgskin(id,level,cid){
- if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED
- new arg[33]
- read_argv(1,arg,32)
- new player = cmd_target(id,arg,0)
- if (!player) return PLUGIN_HANDLED
- new team = get_user_team(player)
- switch (team){
- case 1:{
- new i = random_num(0,3)
- cs_set_user_model(player,cskins[i])
- }
- case 2:{
- new i = random_num(0,3)
- cs_set_user_model(player,tskins[i])
- }
- }
- return PLUGIN_HANDLED
- }
复制代码 |
|