cstrike/clients.txt :
Code
public OnPluginStart()
{
new Handle:kv = CreateKeyValues("clients");
if (!FileToKeyValues(kv, "clients.txt"))
{
PrintToServer("1");
return;
}
if (KvJumpToKey(kv, "players"))
{
if (KvJumpToKey(kv, "Scarface"))
{
decl String:ip[35]; KvGetString(kv, "ip", ip, 35);
decl String:section[35]; section[0] = '\0'; KvGetSectionName(kv, section, 35);
PrintToServer("section: \"%s\" | ip: \"%s\"", section, ip);
return;
}
}
PrintToServer("2");
}