View Single Post
GoldTreeServers
Senior Member
Join Date: Dec 2012
Old 12-01-2013 , 16:41   Re: Advanced Godmode
Reply With Quote #2

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);


Last edited by GoldTreeServers; 12-02-2013 at 09:23.
GoldTreeServers is offline