If Get Player health >100
#8

Oh it's okay
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
		if(pInfo[damagedid][God] == 1)
	    {
        GameTextForPlayer(playerid, "~r~This player is godmodded! You can not attack him!", 5000, 0); // Send this message to playerid (attacker)
        }
        return 1;
}
This is my GOD CMD:
Код:
CMD:god(playerid,params[])
{
	if(pInfo[playerid][ALevel] >= 2 || IsPlayerAdmin(playerid))
	{
	    if(DMTIME[playerid] == 1)return SendClientMessage(playerid,Red,"[ERROR]:- You cannot use this command in dmtime!");
	    if(pInfo[playerid][VGod] == 1)return SendClientMessage(playerid,Red,"[ERROR]:- {FFFFFF}You Vip God Is On Turn It Off To Use Admin Godmode!");
	    SendCommandToAdmins(playerid,"GOD");

		if(pInfo[playerid][God] == 0)
	    {
			GivePlayerWeapon(playerid,26,99999);
			GivePlayerWeapon(playerid,16,50000);
			SetPlayerHealth(playerid,999999999);
			pInfo[playerid][God] = 1;
			SendClientMessage(playerid,0x00FFFFFF,"|_God Mode On_|");
			AutoR(playerid);
		}
		else
		{
			SetPlayerHealth(playerid,100.0);
			pInfo[playerid][God] = 0;
			SendClientMessage(playerid,0x00FFFFFF,"|_God Mode Off_|");
			return 1;
		}
		return 1;
	}
	else return LevelMSG(playerid,2);
}
About AFK , I meant when someone also shoot another one and if he was afk gamemodetext , But you know player can be afk with out type /afk , by clicking ESC, thanks!!
Reply


Messages In This Thread
If Get Player health >100 - by MahdiGames - 12.01.2014, 23:13
Re: If Get Player health >100 - by Kirollos - 13.01.2014, 00:15
Re: If Get Player health >100 - by xZdadyZx - 13.01.2014, 06:03
Re: If Get Player health >100 - by Dignity - 13.01.2014, 07:45
Re: If Get Player health >100 - by MahdiGames - 13.01.2014, 07:46
Re: If Get Player health >100 - by MahdiGames - 13.01.2014, 07:51
Re: If Get Player health >100 - by Dignity - 13.01.2014, 07:52
Re: If Get Player health >100 - by MahdiGames - 13.01.2014, 07:55
Re: If Get Player health >100 - by Dignity - 13.01.2014, 07:57
Re: If Get Player health >100 - by MahdiGames - 13.01.2014, 07:59

Forum Jump:


Users browsing this thread: 1 Guest(s)