IsPlayerInRangeOfPoint problem -
DarkLored - 29.03.2014
* SOLVED *
Re: IsPlayerInRangeOfPoint problem -
AhmedMohamed - 29.03.2014
Your Proplem is here:
Why you made it 2 times?
pawn Код:
if(IsDetain[ID] == 0)
{
SendClientMessage(playerid,COLOR_ERROR,"You can only use this command on detained players.");
return 1;
}
pawn Код:
if(HasDetainedPlayer[playerid] == 0)
{
SendClientMessage(playerid,COLOR_ERROR,"You have to detain a player first inorder to use this command.");
return 1;
}
not 2 times but i think same effect
Re: IsPlayerInRangeOfPoint problem -
DarkLored - 29.03.2014
The second one detects if the player that is using a command has a detained player
the first one is to detect if the target is detained, there is no problem with them the main problem is the IsPlayerInRangeOfPoint function but i dont know how to fix it
Re: IsPlayerInRangeOfPoint problem -
AhmedMohamed - 29.03.2014
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,2.5,1537.7087,-1639.0579,13.5469))
is this the arrest point??
Re: IsPlayerInRangeOfPoint problem -
DarkLored - 29.03.2014
this is the point you drop off the player when you use the command
it suppose to remove the player from the vehicle and send him to jail but it doesn't do anything
Re: IsPlayerInRangeOfPoint problem -
AhmedMohamed - 29.03.2014
you set the cuffed man if he wanted level 4,5,6 send him to jail and no else
Re: IsPlayerInRangeOfPoint problem -
DarkLored - 29.03.2014
Look i guess you dont understand what is the problem. The problem is that when i am in the point with my vehicle
and the criminal is a passenger it doesn't jail him or anything
Anyone else have a solution for this?
Re: IsPlayerInRangeOfPoint problem -
DarkLored - 29.03.2014
BUMP
any help guys?
Re: IsPlayerInRangeOfPoint problem -
SickAttack - 29.03.2014
How's it going DarkLored? :P Okay so your problem is on the first line, you are getting the wanted level of the police officer such as yourself, but you have to get the wanted level of the suspect so just change playerid to ID and there (Refer to the second line).
pawn Код:
LINE 1: new pwl = GetPlayerWantedLevel(playerid);
pawn Код:
LINE 2: new pwl = GetPlayerWantedLevel(ID);
Re: IsPlayerInRangeOfPoint problem -
DarkLored - 29.03.2014
Thanks its Solved now