Code: Select all
local entity p;
p = find (world, stringname, "client");
while ((p != world))
{
/// do whatever to the entity here....
p = find (p, stringname, "client");
}
In this example the coder used a float .stringname and set it to "client" in clientconnect which defines them more clearly as a client.
So lets say for multidamage you set a .multidamage string field, and put the players netname into it, then use this code to walk through the matching entities? It ought to work.....