22.08.2018, 22:40
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
Any help is appreciated
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); } } }