20.08.2009, 08:52
hey there i need help iv got this code
but it dosent kill civillian and i whant it to kill civillian
thx for ur time
Код:
public isPlayerInArea(playerid) { new Float:X, Float:Y, Float:Z; for(new i=0; i < MAX_PLAYERS; i++) { GetPlayerPos(i, X, Y, Z); if (X <= 1543 && X >= 1608 && Y <= -1634 && Y >= -1602) { if (gTeam[playerid] == TEAM_CIVILLIAN) { GameTextForPlayer(playerid,"~y~ You Died For Being On Police Property",5000,5); SetPlayerHealth(i, -999999.9); //This will ensure, that our player gets killed if he tries to enter } } } }
thx for ur time