Fixed amb713, IsPlayerAlive native comment.
Fixed
amb713, IsPlayerAlive native comment.
1.1 --- a/extensions/sdktools/vnatives.cpp Wed Aug 01 17:51:38 2007 +0000
1.2 +++ b/extensions/sdktools/vnatives.cpp Wed Aug 01 17:56:27 2007 +0000
1.3 @@ -633,6 +633,8 @@
1.4 {
1.5 return info->IsDead() ? 0 : 1;
1.6 }
1.7 +
1.8 + return pContext->ThrowNativeError("\"IsPlayerAlive\" not supported by this mod");
1.9 }
1.10 return (*((uint8_t *)pEntity + lifeState_off) == LIFE_ALIVE) ? 1: 0;
1.11 }
2.1 --- a/plugins/include/sdktools_functions.inc Wed Aug 01 17:51:38 2007 +0000
2.2 +++ b/plugins/include/sdktools_functions.inc Wed Aug 01 17:56:27 2007 +0000
2.3 @@ -129,7 +129,7 @@
2.4 * Returns if the client is alive or dead.
2.5 *
2.6 * @param client Player's index.
2.7 - * @return True if the client is dead, false otherwise.
2.8 + * @return True if the client is alive, false otherwise.
2.9 * @error Invalid client index, client not in game, or no mod support.
2.10 */
2.11 native bool:IsPlayerAlive(client);