Fixed amb713, IsPlayerAlive native comment.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401250
This commit is contained in:
Phong Dang 2007-08-01 17:56:27 +00:00
parent b22f9d705e
commit bf3c802e48
2 changed files with 3 additions and 1 deletions

View File

@ -633,6 +633,8 @@ static cell_t IsPlayerAlive(IPluginContext *pContext, const cell_t *params)
{ {
return info->IsDead() ? 0 : 1; return info->IsDead() ? 0 : 1;
} }
return pContext->ThrowNativeError("\"IsPlayerAlive\" not supported by this mod");
} }
return (*((uint8_t *)pEntity + lifeState_off) == LIFE_ALIVE) ? 1: 0; return (*((uint8_t *)pEntity + lifeState_off) == LIFE_ALIVE) ? 1: 0;
} }

View File

@ -129,7 +129,7 @@ native GetClientEyeAngles(client, Float:ang[3]);
* Returns if the client is alive or dead. * Returns if the client is alive or dead.
* *
* @param client Player's index. * @param client Player's index.
* @return True if the client is dead, false otherwise. * @return True if the client is alive, false otherwise.
* @error Invalid client index, client not in game, or no mod support. * @error Invalid client index, client not in game, or no mod support.
*/ */
native bool:IsPlayerAlive(client); native bool:IsPlayerAlive(client);