Information for Developers
PHP Code:
/**
* Get a clients godmode status
*
* @param client Client
* @return Godmode status
*/
native IsPlayerOnGodmode(client);
/**
* Get a clients buddha status
*
* @param client Client
* @return Buddha status
*/
native IsPlayerOnBuddha(client);
/**
* Get a clients mortal status
*
* @param client Client
* @return Mortal status
*/
native IsPlayerMortal(client);
/**
* Sets a clients godmode status
*
* @param client Client
* @return Nothing
*/
native GiveToPlayerGodmode(client);
/**
* Sets a clients buddha status
*
* @param client Client
* @return Nothing
*/
native GiveToPlayerOnBuddha(client);
/**
* Sets a clients mortal status
*
* @param client Client
* @return Nothing
*/
native MakePlayerMortal(client);
Example
Make player mortal if player have godmode / buddha.
PHP Code:
if(IsPlayerMortal(client) != true)
{
MakePlayerMortal(client);
}