- 听众
- 收听
- 积分
- 2462
- 主题
- 回帖
- 0
- 精华
注册时间2006-9-30
最后登录1970-1-1
该用户从未签到
|
楼主 |
发表于 2008-12-18 00:13:58
|
显示全部楼层
i thought the last version was v1.1 @.@
the one you posted is UNFINISHED and it just disable scripts.
banning non-steam player by ip:
open admincmd.sma,
replace
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
        if (reason[0])
                server_cmd("kick #%d ^"%s (%s %s)^";wait;banid ^"%s^" ^"%s^";wait;writeid", userid2, reason, banned, temp, minutes, authid2)
        else
                server_cmd("kick #%d ^"%s %s^";wait;banid ^"%s^" ^"%s^";wait;writeid", userid2, banned, temp, minutes, authid2)
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
with
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 new ip[32]
 get_user_ip(player,ip,31,1)
 new flag = 0
 new players[32],playernum,playerauthid[32]
 get_players(players, playernum, "c")
 for(new i =0; i<playernum; i++)
 {
         if(players[i] == player) continue
         get_user_authid( players[i], playerauthid, 31)
         if(equali(authid2, playerauthid)) 
                 flag = 1
 } 
 
 
 if (equal("4294967295", authid2)
         || equal("HLTV", authid2)
         || equali("STEAM_ID_LAN", authid2)
         || equali("VALVE_ID_LAN", authid2)
         || flag
         || equali("VALVE_ID_PENDING", authid2))
 {
         if (reason[0])
                 server_cmd("kick #%d ^"%s (%s %s)^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, reason, banned, temp, minutes, ip)
         else
                 server_cmd("kick #%d ^"%s %s^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, banned, temp, minutes, ip)
 }
 else
 { 
         if (reason[0])
                 server_cmd("kick #%d ^"%s (%s %s)^";wait;banid ^"%s^" ^"%s^";wait;writeid", userid2, reason, banned, temp, minutes, authid2)
         else
                 server_cmd("kick #%d ^"%s %s^";wait;banid ^"%s^" ^"%s^";wait;writeid", userid2, banned, temp, minutes, authid2)
 }
 
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
and then compile it.
[[i] 本帖最后由 Simen.newbie 于 2008-12-18 00:19 编辑 [/i]] |
|