[FilterScript] Head Shot System
#4

Remove Post

Because

1>You Are Giving AMX

2> Too Easy Too Make

HeadShot System Too Easy

Code:
public OnPlayerTakeDamage(playerid, playerid2, arg2, arg3, arg4)
{
	if(65535 != playerid2 && arg3 == 34 && arg4 == 9)
	{
		new var0[100], var1[24], var2[24];
		GetPlayerName(playerid, var1, 24);
		GetPlayerName(playerid2, var2, 24);
		format(var0, 100, "[RBot]:%s(%i) was shoot to the head by %s(%i)", var1, playerid, var2, playerid2);
		SendClientMessageToAll(0x00F00FFF, var0);
		GameTextForPlayer(playerid2, "~r~Headshot", 2000, 3);
		PlayerPlaySound(playerid2, 17802, 0.0, 0.0, 0.0);
		GameTextForPlayer(playerid, "~r~Headshot", 2000, 3);
		PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0);
		SetPlayerHealth(playerid, 0.0);
	}
	return 1;
}

public OnPlayerConnect(playerid)
{
	new var0[24], var1[46];
	GetPlayerName(playerid, var0, 24);
	format(var1, 46, "%s has joined the server", var0);
	SendClientMessageToAll(0xAAAAAAAA, var1);
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	new var0[24], var1[63];
	GetPlayerName(playerid, var0, 24);
	switch(reason) {
		case 0:
			format(var1, 63, "%s has left the server. (Lost Connection)", var0);
		case 1:
			format(var1, 63, "%s has left the server. (Leaving)", var0);
		case 2:
			format(var1, 63, "%s has left the server. (Kicked)", var0);
	}
	SendClientMessageToAll(0xAAAAAAAA, var1);
	return 1;
}
Here Is The Code Okay
Reply


Messages In This Thread
Head Shot System - by 2Aternal2 - 23.07.2017, 12:34
Re: Head Shot System - by [G]am3r - 23.07.2017, 12:40
Re: Head Shot System - by 2Aternal2 - 23.07.2017, 12:44
Re: Head Shot System - by SilverScripter - 23.07.2017, 12:44
Re: Head Shot System - by [G]am3r - 23.07.2017, 12:48
Re: Head Shot System - by 2Aternal2 - 23.07.2017, 12:52
Re: Head Shot System - by SilverScripter - 23.07.2017, 12:54
Re: Head Shot System - by iLearner - 23.07.2017, 13:09
Re: Head Shot System - by Venom546 - 21.09.2018, 21:25
Re: Head Shot System - by Lokii - 21.09.2018, 21:44
Re: Head Shot System - by Mazio - 22.09.2018, 01:27
Re: Head Shot System - by OKStyle - 16.12.2018, 03:51
Re: Head Shot System - by Wherethescripters - 13.01.2019, 06:06

Forum Jump:


Users browsing this thread: 2 Guest(s)