Safe zone.
#5

AeroBlast i try your page what you give me but it still don't work here is my code:

Код:
OnGameModeInit:

SetTimer("isPlayerInArea", 1000, true);
Then after all my gm:

Код:
forward isPlayerInArea();
public isPlayerInArea()
{
new Float:X, Float:Y, Float:Z; //We use this to store player position
for(new i=0; i < MAX_PLAYERS; i++) //This line defines a name for all player, the name is "i"
{
print("Hello");
GetPlayerPos(i, X, Y, Z);
if (X <= -55.0116 && X >= 35.5120 && Y <= 1208.9111 && Y >= 1239.7379)         
{
print("Hello2");
SetPlayerHealth(i,5000);
}
}
}
Ok why i use print? I use print because i want check ok,first print is work,but second is doesn't work then i think with this is bad:

Код:
if (X <= -55.0116 && X >= 35.5120 && Y <= 1208.9111 && Y >= 1239.7379)         
{
And too here is my four coord:

Код:
AddPlayerClass(20,-54.9971,1208.9401,19.3594,125.6477,0,0,0,0,0,0); // 1 Hotel corner
AddPlayerClass(20,-55.0116,1238.0369,19.3594,47.6675,0,0,0,0,0,0); // 2 Hotel corner
AddPlayerClass(20,32.5096,1239.7379,19.3438,309.7458,0,0,0,0,0,0); // 3 Hotel corner
AddPlayerClass(20,35.5120,1208.9111,19.0166,222.5389,0,0,0,0,0,0); // 4 Hotel corner
But when i want do gang zone it's work fine...
Reply


Messages In This Thread
Safe zone. - by budelis - 02.11.2011, 19:23
Re: Safe zone. - by AndreT - 02.11.2011, 19:24
Re: Safe zone. - by AeroBlast - 02.11.2011, 19:25
Re: Safe zone. - by budelis - 02.11.2011, 19:46
Re: Safe zone. - by budelis - 03.11.2011, 09:39
Re: Safe zone. - by $India$ - 03.11.2011, 10:07
Re: Safe zone. - by AndreT - 03.11.2011, 11:13
Re: Safe zone. - by budelis - 03.11.2011, 11:52
Re: Safe zone. - by BaubaS - 03.11.2011, 11:54
Re: Safe zone. - by budelis - 03.11.2011, 12:55

Forum Jump:


Users browsing this thread: 1 Guest(s)