01.02.2010, 18:53
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.
{
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.