Death icon .
#6

Код:
static 
	bool:DeathList;


public OnGameModeInit()
{
    DeathList = true;
    return 1;
}

CMD:togdeath(playerid, params[]) 
{
	if (!DeathList) 
	{
		DeathList = true;
		SendClientMessage(playerid, -1, "ON");
	}
	else
	{
		DeathList = false;
		SendClientMessage(playerid, -1, "OFF");

		for (new i; i != 5; i++) {
			SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 200);
		}
	}
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{

    if (DeathList) 
    	SendDeathMessage(killerid, playerid, reason);

    return 1;
}
Reply


Messages In This Thread
Death icon . - by SoFahim - 22.07.2015, 14:56
Re: Death icon . - by Igarashi - 22.07.2015, 14:59
Re: Death icon . - by Moudix - 22.07.2015, 15:04
Re: Death icon . - by SoFahim - 22.07.2015, 15:11
Re: Death icon . - by Igarashi - 22.07.2015, 15:30
Re: Death icon . - by Evocator - 22.07.2015, 15:57
Re: Death icon . - by SoFahim - 22.07.2015, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)