IsPlayerInRangeOfPoint.. -
Razvann - 01.02.2010
public jailwarning()
{
for(
new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i ][pJailed] == 1 || PlayerInfo[i ][pJailed] == 2)
{
if(!IsPlayerInRangeOfPoint(i, 5000000000.0, 268.3327,77.8972,1001.0391

)
{
new string[256];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(i, sendername,
sizeof(sendername));
format(string, 256, "AdmWarning: %s[%d] is in jail and he's not in a jail cell!",sendername,i);
ABroadCast(COLOR_YELLOW,string,1);
}
}
}
}
What's wrong?The message doensen't appear.
Re: IsPlayerInRangeOfPoint.. -
MadeMan - 01.02.2010
You have
! in front of IsPlayerInRangeOfPoint that means if player IS NOT in that range.
Re: IsPlayerInRangeOfPoint.. -
Razvann - 01.02.2010
Yeah, this is the idea, when the player is jailed and he's not in a jail cell that message will apear to the admins!
Re: IsPlayerInRangeOfPoint.. -
MadeMan - 01.02.2010
In that case the distance 5000000000.0 is too big, make it smaller, about 50.0
Re: IsPlayerInRangeOfPoint.. -
Razvann - 01.02.2010
I want that distantce to be in the entire map..
Re: IsPlayerInRangeOfPoint.. -
MadeMan - 01.02.2010
So if player is not inside entire map, this message will be sent?
Re: IsPlayerInRangeOfPoint.. -
Razvann - 01.02.2010
Yeah, can you do it?
Re: IsPlayerInRangeOfPoint.. -
MadeMan - 01.02.2010
omg, are you stupid? This message will never be sent then.
Re: IsPlayerInRangeOfPoint.. -
Razvann - 01.02.2010
No, sorry, I haven't noticed good, I want when he's not in that jail spot the message will apear to the admins.Sorry again.
@bmuk, I did that, same

.
Re: IsPlayerInRangeOfPoint.. -
BMUK - 01.02.2010
Quote:
Originally Posted by Razvann
No, sorry, I haven't noticed good, I want when he's not in that jail spot the message will apear to the admins.Sorry again.
|
Quote:
Originally Posted by MadeMan
In that case the distance 5000000000.0 is too big, make it smaller, about 50.0
|