dogtags
#1

Hello there, I am creating a Kill Confirmed gamemode for myself and a couple of friends and I'm wondering, when I die, I want to have some sort of "Tag" that needs picking up.

Hello there,
Well i am creating a gamemode which basically when player dies a player pickup is created if other team picked it up +1 point but if other team picked it up it's denied well i can't really think how it can be done and picked under onplayerpickuppickup

BUT, when I come to use pickups, I can't think how I would make it pickable under OnPlayerPickupPickup.

Like example i could have CreatePickup under OnPlayerDeath but on picking it up i couldn't tjhink how to get this working good
if someone could help me out ++rep for them and will be appreciated

I also need it to check if the player's team (who picked it)

new KCPickup;
new KCPickup2;


OnPlayerDeath
if player's is buster and killer is zombie so createpickup is called
and vice versa in kcpickup2
Код:
if(pickupid == KCPickup) 
	{
		if(PlayerInfo[playerid][IsPlaying] == true)
		{
			if(PlayerInfo[playerid][gTeam] == ZOMBIE) 
			{ 
				TeamKCKills[PlayerInfo[playerid][gTeam]]+=PointCount;
				SendClientMessage(playerid, -1, "{FFFFFF}KILL:{57BB82}Kill confirmed"); 
			}
			else if(PlayerInfo[playerid][Team] == BUSTER)
			{
				new string[256]; 
                                TeamKCDenie[PlayerInfo[playerid][gTeam]]+=PointCounter;
				format(string,sizeof(string),"{FFFFFF}DEATH:{57BB82}Death has been denied");
				SendClientMessage(playerid, -1, string); 
			}
		}
	}
	if(pickupid == KCPickup2) 
	{
		if(PlayerInfo[playerid][IsPlaying] == true)
		{
			if(PlayerInfo[playerid][gTeam] == BUSTER) 
			{ 
				TeamKCKills[Player[playerid][gTeam]]+=PointCount;
				SendClientMessage(playerid, -1, "{FFFFFF}KILL:{57BB82}Kill confirmed"); 
			}
			else if(PlayerInfo[playerid][gTeam] == ZOMBIE)
			{
				new string[256];
                                TeamKCDenie[PlayerInfo[playerid][gTeam]]+=PointCounter;
				format(string,sizeof(string),"{FFFFFF}DEATH:{57BB82}Death has been denied");
				SendClientMessage(playerid, -1, string); 
			}
		}
	}
Any help is appreciated
Reply


Messages In This Thread
dogtags - by Mohaaaaaaaaaaa - 22.08.2018, 22:40
Re: dogtags - by Sew_Sumi - 23.08.2018, 01:59
Re: dogtags - by Mohaaaaaaaaaaa - 23.08.2018, 07:27
Re: dogtags - by Sew_Sumi - 23.08.2018, 08:16
Re: dogtags - by Mohaaaaaaaaaaa - 23.08.2018, 08:24
Re: dogtags - by Sew_Sumi - 23.08.2018, 10:41
Re: dogtags - by Mohaaaaaaaaaaa - 23.08.2018, 11:49
Re: dogtags - by Sew_Sumi - 23.08.2018, 15:05
Re: dogtags - by Mohaaaaaaaaaaa - 23.08.2018, 16:58
Re: dogtags - by Mohaaaaaaaaaaa - 24.08.2018, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)