Please help me to add command for health&armour to cant die!
#3

so man look i add that

Код:
	//---------------------------------------[goodmode]--------------------------
	if(strcmp(cmd,"/gospod",true)==0)
	{
        if(PlayerInfo[playerid][pAdmin] >= 1338)
        {
			SetPlayerHealth(playerid, INFINITY);
			SetPlayerArmour(playerid, INFINITY);
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, 256, "-| Admin [ID %d ] %s go vkluci GODMODE. |-", playerid,sendername);
         	SendClientMessageToAll(COLOR_RED, string);
		}
		return 1;
	}
and #define INFINITY (Float:0x7F800000)

but peoples can kill me again i type /gospod i get full health armor but when he shout me my health go away.. and i can die! I want to make a command to cant die i see that in raven rp when you adminonduty others cant kill you!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)