06.04.2011, 21:01
pawn Код:
//under OnPlayerDeath
if(pInfo[playerid][Team] == 2)
{
new Float:XZ;
new Float:YZ;
new Float:ZZ;
GetPlayerPos(playerid, XZ, YZ, ZZ);
{
DeathArea = GangZoneCreate(XZ-20, YZ-20, XZ+20, YZ+20);
}
GangZoneShowForAll(DeathArea, VIRUS_ZONE_COLOR);
}
//then I used timers to check if the player is in the area
//and I need to use IsPlayerInArea, how will I put the coords ?
if(IsPlayerInArea(i, XZ-20, XZ+20, YZ-20, YZ+20))//wont work, how should I do it ?