10.07.2010, 11:45
I just mentioned it maybe he wants to check it out.
Anyway IsPlayerInRange isn't between players, it's almost the same as IsPlayerInRangeOfPoint only shorter and with more options
Anyway IsPlayerInRange isn't between players, it's almost the same as IsPlayerInRangeOfPoint only shorter and with more options
pawn Код:
IsPlayerInRange
Returns 1 if if they are, 0 if they aren't
Parameters:
(playerid, Float: Range, Float: Z_Range, Float:tar_x, Float:tar_y, Float:tar_z)
playerid The playerid you want to query
Float:Range The range the player can be in
Float:Z_Range The height range the player can be in
Float:tar_x The x value for the point
Float:tar_y The y value for the point
Float:tar_z The z value for the point
Returns 1 if they are in the range, 0 if they aren't
IsPlayerInRange(2, 2.0, 2.0, 4.0, 4.0, 4.0);