getting errors with this automatic gate script
#9

stock PlayerToPoint(playerid,Float:radi, Floatx, Floaty, Floatz)
{
if(IsPlayerConnected(playerid))
{
new Float, Float:y, Float:z;
new Floatx, Floaty, Floatz;
GetPlayerPos(playerid, ox, oy, oz);
x = (ox -px);
y = (oy -py);
z = (oz -pz);
if (((x < radi) && (x > -radi)) && ((y < radi) && (y > -radi)) && ((z < radi) && (z > -radi))) return 1;
}
return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)