05.04.2009, 10:04
Add this into your script and use the same Float's as in with your gangzone:
Example, with guessing you have gangzone created already:
Код:
IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); if (x > minx && x < maxx && y > miny && y < maxy) return 1; return 0; }
Код:
GangZoneCreate(100, 300, 500, 400); public OnPlayerDeath(playerid, killerid, reason) { IsPlayerInArea(playerid, 100, 500, 300, 400); { // do something maybe :o } }