OnPlayerDeath turfs wars problem
#1

How I can check if a player die in a gang zone? I try with IsPlayerInTurf(playerid, turfid); and IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy); and it dont work in OnPlayerDeath and I dont know why.


This is the code OnPlayerDeath:

Код:
if(IsPlayerInTurf(killerid, 0) && IsAMember(playerid) && PlayerInfo[killerid][pMember] == 14 || PlayerInfo[killerid][pLeader] == 14 && TurfInfo[0][zOwner] != 22)
	{
	TeamInfo[2][RivalsKilled] += 1;
	SendClientMessageToAll(COLOR_RED, "ЎUn Renegade esta atacando una zona!");
	}
Why Dont work on OnPlayerDeath? Please help me, any help its good!


Sorry for my bad English, I speak spanish.


THANKS for all.
Reply
#2

Quote:
Originally Posted by CTCCoco
How I can check if a player die in a gang zone? I try with IsPlayerInTurf(playerid, turfid); and IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy); and it dont work in OnPlayerDeath and I dont know why.


This is the code OnPlayerDeath:

Код:
if(IsPlayerInTurf(killerid, 0) && IsAMember(playerid) && PlayerInfo[killerid][pMember] == 14 || PlayerInfo[killerid][pLeader] == 14 && TurfInfo[0][zOwner] != 22)
	{
	TeamInfo[2][RivalsKilled] += 1;
	SendClientMessageToAll(COLOR_RED, "ЎUn Renegade esta atacando una zona!");
	}
Why Dont work on OnPlayerDeath? Please help me, any help its good!


Sorry for my bad English, I speak spanish.


THANKS for all.
Anyone can help me? Thanks.
Reply
#3

Quote:
Originally Posted by CTCCoco
Quote:
Originally Posted by CTCCoco
How I can check if a player die in a gang zone? I try with IsPlayerInTurf(playerid, turfid); and IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy); and it dont work in OnPlayerDeath and I dont know why.


This is the code OnPlayerDeath:

Код:
if(IsPlayerInTurf(killerid, 0) && IsAMember(playerid) && PlayerInfo[killerid][pMember] == 14 || PlayerInfo[killerid][pLeader] == 14 && TurfInfo[0][zOwner] != 22)
	{
	TeamInfo[2][RivalsKilled] += 1;
	SendClientMessageToAll(COLOR_RED, "ЎUn Renegade esta atacando una zona!");
	}
Why Dont work on OnPlayerDeath? Please help me, any help its good!


Sorry for my bad English, I speak spanish.


THANKS for all.
Anyone can help me? Thanks.
Thanks for all...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)