IsPlayerInRangeOfPoint..
#1

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.
Reply
#2

You have ! in front of IsPlayerInRangeOfPoint that means if player IS NOT in that range.
Reply
#3

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!
Reply
#4

In that case the distance 5000000000.0 is too big, make it smaller, about 50.0
Reply
#5

I want that distantce to be in the entire map..
Reply
#6

So if player is not inside entire map, this message will be sent?
Reply
#7

Yeah, can you do it?
Reply
#8

omg, are you stupid? This message will never be sent then.
Reply
#9

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 .
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)