So since i moved to squirrel ive been having a problem with the local message for my RPG server
The /c l doesnt work wen im ingame and i type it nothing hapenes its like i havent typed nothing.
I have the IsPlayerInRangeOfPoint Function already.
function IsPlayerInRangeOfPoint(v1, v2, range) // by Rusty_Bullet22
{
v1.x -= v2.x, v1.y -= v2.y, v1.z -= v2.z;
return ((v1.x * v1.x) + (v1.y * v1.y) + (v1.z * v1.z)) < (range * range);
}
Here is my cmd line.
else if ( cmd == "l" || cmd == "local" )
{
LocalMessage(player.Name + " says: " + text, player.Pos, 10);
}
Im a noob in squirrel so i dont know what may be cousing this problem.