I have this function to tell a user about their level, and XP.
But when a user it aiming/pointing at another player the message gets resetted.
How can i prevent this message from disappear when users look at eachother?
Code:
public CreateStatusText(id)
{
if (!armymod)
return PLUGIN_HANDLED
new Text[60]
format(Text, 60, "[Level: %i] [XP: %i] Next Level in %i XP", PlayerLevel[id], PlayerXP[id], Levels[PlayerLevel[id]] - PlayerXP[id]);
message_begin(MSG_ONE, get_user_msgid("StatusText"), {0, 0, 0}, id);
write_byte(0);
write_string(Text);
message_end();
return PLUGIN_CONTINUE
}