04.04.2009, 13:01
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!");
}
Sorry for my bad English, I speak spanish. THANKS for all. ![]() |


