GameForPlayer after killed
#2

Try This
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	new msg[128],reasonMsg[32], pname[MAX_PLAYER_NAME], string[128], deathreason[20];
	SendDeathMessage(killerid,playerid,reason);
	GameTextForPlayer(playerid,"~r~~h~OWNED",10000,1);
	GetPlayerName(playerid, pname, sizeof(pname));
	GetWeaponName(reason, deathreason, 20);
	new pstring[128]; //player message
	new killer[MAX_PLAYER_NAME];
	GetPlayerName(killerid, killer, sizeof(killer));
 	PlayerInfo[ playerid ][ Deaths ] ++;
	new kstring[128]; //killer message
	GetPlayerName(playerid, pname, sizeof(pname));
	format(kstring, sizeof(kstring), "~b~Haha Ya 0wned %s",pname);
	GameTextForPlayer(killerid, kstring, 4000, 3);
	new kname[MAX_PLAYER_NAME];   //killername
	GetPlayerName(killerid, kname, sizeof(kname));
	format(pstring, sizeof(pstring), "~r~:( you got 0wned by %s",kname);
	GameTextForPlayer(playerid, pstring, 4000, 3);
	
	new kscore=GetPlayerScore(killerid);
	SetPlayerScore(killerid,kscore++);
	PlayerInfo[playerid][Deaths]++;
	PlayerInfo[killerid][Kills]++;
	new moneytemp;
	moneytemp = GetPlayerMoney(playerid)/8;
	if(moneytemp<=5000) {
		GivePlayerMoney(killerid,moneytemp);
		GivePlayerMoney(playerid,-moneytemp);
	}
	else if(moneytemp>5000) {
		GivePlayerMoney(killerid,5000);
		GivePlayerMoney(playerid,-5000);
	
	}
	SendClientMessageToAll(COLOR_GREEN, string);
	return 1;
}
Reply


Messages In This Thread
GameForPlayer after killed w/image - by kbalor - 26.06.2012, 17:08
Re: GameForPlayer after killed - by God'Z War - 26.06.2012, 17:19
Re: GameForPlayer after killed - by tyler12 - 26.06.2012, 17:22
Re: GameForPlayer after killed - by kbalor - 26.06.2012, 17:29
Re: GameForPlayer after killed - by Dan_Barocu - 26.06.2012, 17:30
Re: GameForPlayer after killed - by tyler12 - 26.06.2012, 17:31
Re: GameForPlayer after killed - by Skaizo - 26.06.2012, 17:31
Re: GameForPlayer after killed - by kbalor - 26.06.2012, 17:34
Re: GameForPlayer after killed - by God'Z War - 26.06.2012, 17:39
Re: GameForPlayer after killed - by kbalor - 26.06.2012, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)