SA-MP Forums Archive
God mode. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: God mode. (/showthread.php?tid=587146)



God mode. - Tixxt - 28.08.2015

Does someone have a godmode script?


Re: God mode. - CraTzy - 28.08.2015

Here is solution on all your problems Click Me!


Re: God mode. - Michael B - 28.08.2015

Just use SetPlayerHealth(playerid,999999999);. SImple as that.


Re: God mode. - Roberto80 - 28.08.2015

10000 is enough


Re: God mode. - Michael B - 28.08.2015

Quote:
Originally Posted by Roberto80
Посмотреть сообщение
10000 is enough
Not if you use a minigun.


Re: God mode. - SoFahim - 28.08.2015

use
PHP код:
CMD:god(playeridparams[])
{
            
SetPlayerArmour(playerid100000);
            
SetPlayerHealth(playerid100000);
            
SetTimerEx("GodHealthCheck"3000false"i"playerid);
            return 
1;
}
forward GodHealthCheck(playerid);
public 
GodHealthCheck(playerid)
{
    new 
FloatcHealth;
    new 
FloatcArmor;
    
GetPlayerHealth(playeridcHealth);
    
GetPlayerArmour(playeridcArmor);
    if(
cHealth 100)
    {
        
SetPlayerHealth(playeridcHealth+5000);
    }
    if(
cArmor 100)
    {
        
SetPlayerArmour(playeridcArmor+5000);
    }

I think this is enough


Re: God mode. - Variable™ - 28.08.2015

Код:
CMD:god(playerid)
{
    SetPlayerHealth(playerid, 99999);
    return 1;
}



Re: God mode. - Roberto80 - 28.08.2015

You can use a bool,true under god cmd
And use OnPlayerTakeDamage,if the bool is true,give health back,and health will stay 100