War System Problem
#4

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	new name[MAX_PLAYER_NAME];
	new string[256];
	new str[128];
	GetPlayerName(killerid, name, sizeof(name));
	format(string, sizeof(string), "Ai fost omorat de %s", name);
	SendClientMessage(playerid, COLOR_1BLUE, string);

/*if(IsWar && killerid != INVALID_PLAYER_ID) Killing[gTeam[killerid]]++; // OnPlayerDeath
	Killing[PlayerInfo[killerid][pLeader]]++;
	Killing[PlayerInfo[killerid][pMember]]++;*/
///mission//
    if(PlayerOnMission13[playerid] == 1 || PlayerOnMission14[playerid] == 1 || PlayerOnMission15[playerid] == 1 || PlayerOnMission16[playerid] == 1)
	{
	    PlayerOnMission13[playerid] = 0;
	    PlayerOnMission14[playerid] = 0;
	    PlayerOnMission15[playerid] = 0;
	    PlayerOnMission16[playerid] = 0;
	    DisablePlayerCheckpoint(playerid);
		new killer[MAX_PLAYER_NAME];
 		new mort[MAX_PLAYER_NAME];
 		GetPlayerName(playerid, mort, sizeof(mort));
 		GetPlayerName(killerid, killer, sizeof(killer));
		format(string, sizeof(string), "%s l-a omorat pe %s in timp ce facea misiunea si a catigat 50.000$", killer, mort);
		SendClientMessageToAll(0xFF0000FF, string);
		GivePlayerMoney(killerid, 50000);
    	return 1;
   	}
Here is!
Reply


Messages In This Thread
War System Problem - by VikThor - 21.11.2014, 11:37
Re: War System Problem - by VikThor - 21.11.2014, 17:36
Re: War System Problem - by Eth - 21.11.2014, 18:14
Re: War System Problem - by VikThor - 21.11.2014, 18:27
Re: War System Problem - by Eth - 21.11.2014, 22:58
Re: War System Problem - by VikThor - 22.11.2014, 06:49
Re: War System Problem - by VikThor - 22.11.2014, 16:00
Re: War System Problem - by Wingman - 22.11.2014, 16:14
Re: War System Problem - by VikThor - 22.11.2014, 17:59
Re: War System Problem - by VikThor - 23.11.2014, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)