11.03.2010, 06:53
I have a code, And it detected wheather im on the pipe in area 51 to bug abuse the pipe is in the air a little higher than walking height. But if im on the floor near the pipe it kicks me even though im not on the pipe. How do i do it so if its in that height of the pip and near it?
Here is my code
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Float
, Float:y, Float:z;
GetPlayerPos(i,x,y,z);
if(IsPlayerInRangeOfPoint(i, 7.0, 264.1581,1820.8364,9.4387))
{
new oname[30];
new string[156];
GetPlayerName(i,oname,30);
format(string,sizeof(string),"[SERVER] %s(%d) Has Been Kicked! - Bug Abuse!",oname,i);
SendClientMessageToAll(COLOR_ADMIN,string);
Kick(i);
}
Here is my code
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Float

GetPlayerPos(i,x,y,z);
if(IsPlayerInRangeOfPoint(i, 7.0, 264.1581,1820.8364,9.4387))
{
new oname[30];
new string[156];
GetPlayerName(i,oname,30);
format(string,sizeof(string),"[SERVER] %s(%d) Has Been Kicked! - Bug Abuse!",oname,i);
SendClientMessageToAll(COLOR_ADMIN,string);
Kick(i);
}