SA-MP Forums Archive
need godmode code - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need godmode code (/showthread.php?tid=161560)



need godmode code - OmarEco - 20.07.2010

i need god mode code for my server becouse all change stunt to DM and i don't want to this how


Re: need godmode code - Kar - 20.07.2010

SetPlayerHealth(playerid,999999);


Re: need godmode code - OmarEco - 20.07.2010

and armour 999999 too


Re: need godmode code - Kar - 20.07.2010

if you want


Re: need godmode code - xfelipex - 20.07.2010

pratically : [code] if(strcmp("/god", cmdtext, true, 10) == 0)
{
SetPlayerArmour(playerid, 9999999);
SetPlayerHealth(playerid, 9999999);
return 1;
}


Re: need godmode code - x-unit - 20.07.2010

ok for 999999 health but i wanted to set my health to full only so i typed only 100 and my player was with 1hp only!!
what should i type for full health not infiite?