Quote:
Originally Posted by Mitchell
I was asking because i want to make an annotation that only certain players can see over another player's head.
|
Hmm....yeah, I'm not exactly sure. Sorry
EDIT: Actually, I think I may have an idea. Gimme a mo!
PHP Code:
public BuildBitString(Float:position[3])
{
new bitstring = 1;
for (new client=1; client <= MaxClients; client++)
{
// Check if client is ingame, and is a donator. Not sure if this'd work though.
if (IsClientInGame(client) && GetUserFlagBits(client) && ADMFLAG_CUSTOM1)
{
decl Float:EyePos[3];
GetClientEyePosition(client, EyePos);
if (GetVectorDistance(position, EyePos) < 400)
{
bitstring |= RoundFloat(Pow(2.0, float(client)));
}
}
}
return bitstring;
}