God mode for admin
#9

Quote:
Originally Posted by Michael@Belgium
Посмотреть сообщение
Ok ... This is difficult xD. btw: I don't have a server with admin levels, im the only admin ...
Im just using rcon.

I just want a cmd (/god) for the admin himself xD

I don't understand or ... :-/
Then you should use your first code but you set the health too high

Quote:
Originally Posted by Michael@Belgium
Посмотреть сообщение
Код:
if(strcmp("/god", cmdtext, true) == 0)
{
	if(IsPlayerAdmin(playerid))
	{
        SetPlayerHealth(playerid, 999999999999999999999999999999999999999.0);
	}
	else
	{
	SetPlayerHealth(playerid, 100.0);
	}
}
use "100000" like ironboy posted with his stolen command. so;

Код:
if(strcmp("/god", cmdtext, true) == 0)
{
	if(IsPlayerAdmin(playerid))
	{
        SetPlayerHealth(playerid, 100000);
	}
	return 1;
}
Reply


Messages In This Thread
God mode for admin - by Michael@Belgium - 03.01.2011, 08:39
Re: God mode for admin - by Ironboy - 03.01.2011, 08:43
Re: God mode for admin - by Michael@Belgium - 03.01.2011, 08:49
Re: God mode for admin - by Ironboy - 03.01.2011, 08:50
Re: God mode for admin - by Michael@Belgium - 03.01.2011, 08:53
Re: God mode for admin - by Ironboy - 03.01.2011, 08:55
Re: God mode for admin - by Think - 03.01.2011, 08:56
Re: God mode for admin - by Michael@Belgium - 03.01.2011, 09:06
Re: God mode for admin - by Think - 03.01.2011, 09:08
Re: God mode for admin - by Michael@Belgium - 03.01.2011, 09:13

Forum Jump:


Users browsing this thread: 1 Guest(s)