09.08.2011, 18:07
Quote:
Still not working
I got some errors but tried to fix 'em like : - InPlayerInRange ( I changed it to InPlayerInRangeOfPoint ) - undefined symbol "receiver" ( removed it and kept -1 ) but when i go in, it's not working, when i talk i get nothing :/ ! |
pawn Код:
if(!IsPlayerConnected(i) || i == sender) continue; // Remove || i == sender if you want the message also to be sent to "sender"
stock IsPlayerInRange(playerid, Float: Range, Float: Z_Range, Float:tar_x, Float:tar_y, Float:tar_z) //By Simon
{
new Float:player_x, Float:player_y, Float:player_z;
GetPlayerPos(playerid, player_x, player_y, player_z);
if(player_x - tar_x <= Range && player_x - tar_x >= (0.0 - Range) && player_y - tar_y <= Range && player_y - tar_y >= (0.0 - Range) && player_z - tar_z <= Z_Range && player_z - tar_z >= (0.0 - Z_Range))
{
return 1;
}
return 0;
}