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


Messages In This Thread
OnPlayerDeath turfs wars problem - by CTCCoco - 03.04.2009, 22:44
Re: OnPlayerDeath turfs wars problem - by CTCCoco - 04.04.2009, 13:01
Re: OnPlayerDeath turfs wars problem - by CTCCoco - 04.04.2009, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)