Death icon .
#1

I want to open this .



How to Open this.

Is this like

OnGameModeInt()
{
DisableInteriorEnterExits();
SetWeather(2);
SetWorldTime(11);
...........
............
............
}

Or just one kind of scripting?
Reply
#2

You need kill list or only death icon ?

Here you have death icon : https://sampwiki.blast.hk/wiki/Weapons ID : 53

If u need kill list here u have : https://sampwiki.blast.hk/wiki/OnPlayerDeath
Reply
#3

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
SendDeathMessage(killeridplayeridreason);
    return 
1;

Reply
#4

Quote:
Originally Posted by Moudix
Посмотреть сообщение
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
SendDeathMessage(killeridplayeridreason);
    return 
1;

hmm. Okey I have understand it. But can you Show me a tog system for it
Like

CMD:togdeath(playerid, params[])
{
//code for tog it off or on
return 1;
}

there any soluation of it?
Reply
#5

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"
Reply
#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
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)