- UID
- 2361160
- 主题
- 0
- 阅读权限
- 20
- 帖子
- 51
- 精华
- 0
- 积分
- 15
- 金钱
- 86
- 荣誉
- 0
- 人气
- 0
- 在线时间
- 0 小时
- 评议
- 0
- 帖子
- 51
- 精华
- 0
- 积分
- 15
- 金钱
- 86
- 荣誉
- 0
- 人气
- 0
- 评议
- 0
|
public OnMapStart()
{
LogAction(0, -1, "DEBUG:OnMapStart段落");
if(bL8DEnabled)
{
PrintToChatAll("\x01[SM] LeftXDead %s 加载完毕.\x03", PLUGIN_VERSION);
UpdateCounts();
new String:MapName[80];
GetCurrentMap(MapName, sizeof(MapName));
new String:szDifficulty[64];
GetConVarString(sm_l8d_difficulty, szDifficulty, 64);
if (StrContains(MapName, "_vs_", false) != -1)
{
SetConVarInt(FindConVar("z_difficulty_locked"), 0, true);
SetConVarString(FindConVar("z_difficulty"), szDifficulty, true);
}
else
{
// only do this for first coop map or all maps in survival
// Manually change difficulty mode since locked by versus lobby
SetConVarInt(FindConVar("z_difficulty_locked"), 0, true);
SetConVarString(FindConVar("z_difficulty"), szDifficulty, true);
// UpdateCounts();
for(new i=1; i <= MaxClients; i++)
{
bIncappedOrDead = false;
这样吗? |
|