chat_commands 1.2.2

Added TargetIsMyself util function
This commit is contained in:
Resxt 2023-02-19 15:01:14 +01:00
parent bf1ccc2c1f
commit 0c20175902

View File

@ -306,6 +306,11 @@ DvarIsInitialized(dvarName)
return result != "";
}
TargetIsMyself(targetName)
{
return targetName == "me" || ToLower(targetName) == ToLower(self.name);
}
AddElementToArray(array, element)
{
array[array.size] = element;