Death icon .
#7

Quote:
Originally Posted by Igarashi
Посмотреть сообщение
Sure u can enable/disable kill list , all what u need to do is to make new filterscript and delete this code from gamemode

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    return 1;
}
Make new filterscript and load only that.

Код:
#include <a_samp>

public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    return 1;
}
And u can enable/disable that with using rcon.

Код:
/rcon login "yourpassword"
/rcon unloadfs "filterscript name"
Really man, I become a noob after seen this post. I have ask for command. not the FS thing. I know about FS system. -_- (( Thanks for try to help me ))

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
Код:
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;
}
At least. thanks a lot men. You deserve a +REP from me
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)