1.1 --- a/plugins/include/sdktools_functions.inc Wed Aug 01 06:55:55 2007 +0000
1.2 +++ b/plugins/include/sdktools_functions.inc Wed Aug 01 07:18:58 2007 +0000
1.3 @@ -105,6 +105,17 @@
1.4 native SlapPlayer(client, health=5, bool:sound=true);
1.5
1.6 /**
1.7 + * Searches for an entity by classname.
1.8 + *
1.9 + * @param startEnt The entity index to begin searching from.
1.10 + * Use -1 to start from the first entity.
1.11 + * @param classname Classname of the entity to find.
1.12 + * @return Entity index >= 0 if found, -1 otherwise.
1.13 + * @error Lack of mod support.
1.14 + */
1.15 +native FindEntityByClassname(startEnt, const String:classname[]);
1.16 +
1.17 +/**
1.18 * Returns the client's eye angles.
1.19 *
1.20 * @param client Player's index.