improved SaveLevel (was malfunctioning on paramina)
fixed ConnectAnnounce
This commit is contained in:
parent
9536307155
commit
80d52d9aaa
@ -25,7 +25,7 @@ public void OnClientPostAdminCheck(int client)
|
|||||||
GetClientAuthId(client, AuthId_Steam2, sAuth, sizeof(sAuth));
|
GetClientAuthId(client, AuthId_Steam2, sAuth, sizeof(sAuth));
|
||||||
|
|
||||||
if(GetClientIP(client, sIP, sizeof(sIP)) && GeoipCountry(sIP, sCountry, sizeof(sCountry)))
|
if(GetClientIP(client, sIP, sizeof(sIP)) && GeoipCountry(sIP, sCountry, sizeof(sCountry)))
|
||||||
PrintToChatAll("\x04%L [\x03%s\x04] connected from %s", client, sAuth, sCountry);
|
PrintToChatAll("\x04%N [\x03%s\x04] connected from %s", client, sAuth, sCountry);
|
||||||
else
|
else
|
||||||
PrintToChatAll("\x04%L [\x03%s\x04] connected", client, sAuth);
|
PrintToChatAll("\x04%N [\x03%s\x04] connected", client, sAuth);
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,9 @@
|
|||||||
"name" "Level 1"
|
"name" "Level 1"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser1" "leveling_counter,Add,1"
|
"m_OnUser1" "leveling_counter,Add,1"
|
||||||
"ExactMatches" "1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
@ -22,16 +21,14 @@
|
|||||||
"name" "Level 2"
|
"name" "Level 2"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser1" "leveling_counter,Add,1"
|
"m_OnUser1" "leveling_counter,Add,2"
|
||||||
"ExactMatches" "2"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser1 leveling_counter,Add,1,0,-1"
|
"AddOutput" "OnUser1 leveling_counter,Add,2,0,-1"
|
||||||
"AddOutput" "OnUser1 leveling_counter,Add,1,0,-1"
|
|
||||||
"m_iFrags" "200"
|
"m_iFrags" "200"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -40,17 +37,14 @@
|
|||||||
"name" "Level 3"
|
"name" "Level 3"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser1" "leveling_counter,Add,1"
|
"m_OnUser1" "leveling_counter,Add,3"
|
||||||
"ExactMatches" "3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser1 leveling_counter,Add,1,0,-1"
|
"AddOutput" "OnUser1 leveling_counter,Add,3,0,-1"
|
||||||
"AddOutput" "OnUser1 leveling_counter,Add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser1 leveling_counter,Add,1,0,-1"
|
|
||||||
"m_iFrags" "300"
|
"m_iFrags" "300"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -59,18 +53,14 @@
|
|||||||
"name" "Level 4"
|
"name" "Level 4"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser1" "leveling_counter,Add,1"
|
"m_OnUser1" "leveling_counter,Add,4"
|
||||||
"MinMatches" "4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser1 leveling_counter,Add,1,0,-1"
|
"AddOutput" "OnUser1 leveling_counter,Add,4,0,-1"
|
||||||
"AddOutput" "OnUser1 leveling_counter,Add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser1 leveling_counter,Add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser1 leveling_counter,Add,1,0,-1"
|
|
||||||
"m_iFrags" "400"
|
"m_iFrags" "400"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,9 @@
|
|||||||
"name" "Level 1"
|
"name" "Level 1"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser4" "Map_Level_Check,Add,1"
|
"m_OnUser4" "Map_Level_Check,Add,1"
|
||||||
"ExactMatches" "1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
@ -22,16 +21,14 @@
|
|||||||
"name" "Level 2"
|
"name" "Level 2"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser4" "Map_Level_Check,Add,1"
|
"m_OnUser4" "Map_Level_Check,Add,2"
|
||||||
"ExactMatches" "2"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser4 Map_Level_Check,Add,1,0,-1"
|
"AddOutput" "OnUser4 Map_Level_Check,Add,2,0,-1"
|
||||||
"AddOutput" "OnUser4 Map_Level_Check,Add,1,0,-1"
|
|
||||||
"m_iFrags" "200"
|
"m_iFrags" "200"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -40,17 +37,14 @@
|
|||||||
"name" "Level 3"
|
"name" "Level 3"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser4" "Map_Level_Check,Add,1"
|
"m_OnUser4" "Map_Level_Check,Add,3"
|
||||||
"MinMatches" "3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser4 Map_Level_Check,Add,1,0,-1"
|
"AddOutput" "OnUser4 Map_Level_Check,Add,3,0,-1"
|
||||||
"AddOutput" "OnUser4 Map_Level_Check,Add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser4 Map_Level_Check,Add,1,0,-1"
|
|
||||||
"m_iFrags" "300"
|
"m_iFrags" "300"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,9 @@
|
|||||||
"name" "Level 1"
|
"name" "Level 1"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser2" "leveling_counter,add,1"
|
"m_OnUser2" "leveling_counter,add,1"
|
||||||
"ExactMatches" "1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
@ -22,16 +21,14 @@
|
|||||||
"name" "Level 2"
|
"name" "Level 2"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser2" "leveling_counter,add,1"
|
"m_OnUser2" "leveling_counter,add,2"
|
||||||
"ExactMatches" "2"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
"AddOutput" "OnUser2 leveling_counter,add,2,0,-1"
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
|
||||||
"m_iFrags" "200"
|
"m_iFrags" "200"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -40,17 +37,14 @@
|
|||||||
"name" "Level 3"
|
"name" "Level 3"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser2" "leveling_counter,add,1"
|
"m_OnUser2" "leveling_counter,add,3"
|
||||||
"ExactMatches" "3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
"AddOutput" "OnUser2 leveling_counter,add,3,0,-1"
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
|
||||||
"m_iFrags" "300"
|
"m_iFrags" "300"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -59,18 +53,14 @@
|
|||||||
"name" "Level 4"
|
"name" "Level 4"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser2" "leveling_counter,add,1"
|
"m_OnUser2" "leveling_counter,add,4"
|
||||||
"ExactMatches" "4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
"AddOutput" "OnUser2 leveling_counter,add,4,0,-1"
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
|
||||||
"m_iFrags" "400"
|
"m_iFrags" "400"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -79,19 +69,14 @@
|
|||||||
"name" "Level 5"
|
"name" "Level 5"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser2" "leveling_counter,add,1"
|
"m_OnUser2" "leveling_counter,add,5"
|
||||||
"MinMatches" "5"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
"AddOutput" "OnUser2 leveling_counter,add,5,0,-1"
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser2 leveling_counter,add,1,0,-1"
|
|
||||||
"m_iFrags" "500"
|
"m_iFrags" "500"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,9 @@
|
|||||||
"name" "Level 1"
|
"name" "Level 1"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser3" "map_wandlevels,Add,1"
|
"m_OnUser3" "map_wandlevels,Add,1"
|
||||||
"ExactMatches" "1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
@ -22,16 +21,14 @@
|
|||||||
"name" "Level 2"
|
"name" "Level 2"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser3" "map_wandlevels,Add,1"
|
"m_OnUser3" "map_wandlevels,Add,2"
|
||||||
"ExactMatches" "2"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser3 map_wandlevels,Add,1,0,-1"
|
"AddOutput" "OnUser3 map_wandlevels,Add,2,0,-1"
|
||||||
"AddOutput" "OnUser3 map_wandlevels,Add,1,0,-1"
|
|
||||||
"m_iFrags" "200"
|
"m_iFrags" "200"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -40,17 +37,14 @@
|
|||||||
"name" "Level 3"
|
"name" "Level 3"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser3" "map_wandlevels,Add,1"
|
"m_OnUser3" "map_wandlevels,Add,3"
|
||||||
"ExactMatches" "3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser3 map_wandlevels,Add,1,0,-1"
|
"AddOutput" "OnUser3 map_wandlevels,Add,3,0,-1"
|
||||||
"AddOutput" "OnUser3 map_wandlevels,Add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser3 map_wandlevels,Add,1,0,-1"
|
|
||||||
"m_iFrags" "300"
|
"m_iFrags" "300"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -59,18 +53,14 @@
|
|||||||
"name" "Level 4"
|
"name" "Level 4"
|
||||||
"match"
|
"match"
|
||||||
{
|
{
|
||||||
"outputs"
|
"math"
|
||||||
{
|
{
|
||||||
"m_OnUser3" "map_wandlevels,Add,1"
|
"m_OnUser3" "map_wandlevels,Add,4"
|
||||||
"MinMatches" "4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"restore"
|
"restore"
|
||||||
{
|
{
|
||||||
"AddOutput" "OnUser3 map_wandlevels,Add,1,0,-1"
|
"AddOutput" "OnUser3 map_wandlevels,Add,4,0,-1"
|
||||||
"AddOutput" "OnUser3 map_wandlevels,Add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser3 map_wandlevels,Add,1,0,-1"
|
|
||||||
"AddOutput" "OnUser3 map_wandlevels,Add,1,0,-1"
|
|
||||||
"m_iFrags" "400"
|
"m_iFrags" "400"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -256,6 +256,48 @@ public void OnClientDisconnect(int client)
|
|||||||
}
|
}
|
||||||
g_Config.GoBack();
|
g_Config.GoBack();
|
||||||
|
|
||||||
|
Matches += CalcMatches(_Matches, _ExactMatches, _MinMatches, _MaxMatches);
|
||||||
|
}
|
||||||
|
else if(StrEqual(sSection, "math"))
|
||||||
|
{
|
||||||
|
int _Matches = 0;
|
||||||
|
int _ExactMatches = g_Config.GetNum("ExactMatches", -1);
|
||||||
|
int _MinMatches = g_Config.GetNum("MinMatches", -1);
|
||||||
|
int _MaxMatches = g_Config.GetNum("MaxMatches", -1);
|
||||||
|
|
||||||
|
if(g_Config.GotoFirstSubKey(false))
|
||||||
|
{
|
||||||
|
do
|
||||||
|
{
|
||||||
|
g_Config.GetSectionName(sKey, sizeof(sKey));
|
||||||
|
g_Config.GetString(NULL_STRING, sValue, sizeof(sValue));
|
||||||
|
|
||||||
|
int Count = GetOutputCount(client, sKey);
|
||||||
|
for(int i = 0; i < Count; i++)
|
||||||
|
{
|
||||||
|
int Target;
|
||||||
|
int Input;
|
||||||
|
int Parameter;
|
||||||
|
|
||||||
|
int Len = GetOutputTarget(client, sKey, i, sOutput);
|
||||||
|
|
||||||
|
Input = Len;
|
||||||
|
Len += GetOutputTargetInput(client, sKey, i, sOutput[Len]);
|
||||||
|
|
||||||
|
Parameter = Len;
|
||||||
|
Len += GetOutputParameter(client, sKey, i, sOutput[Len]);
|
||||||
|
|
||||||
|
PrintToChatAll("Target: %d -> \"%s\"", sOutput[Target]);
|
||||||
|
PrintToChatAll("Input: %d -> \"%s\"", sOutput[Input]);
|
||||||
|
PrintToChatAll("Parameter: %d -> \"%s\"", sOutput[Parameter]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
while(g_Config.GotoNextKey(false));
|
||||||
|
|
||||||
|
g_Config.GoBack();
|
||||||
|
}
|
||||||
|
g_Config.GoBack();
|
||||||
|
|
||||||
Matches += CalcMatches(_Matches, _ExactMatches, _MinMatches, _MaxMatches);
|
Matches += CalcMatches(_Matches, _ExactMatches, _MinMatches, _MaxMatches);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user