Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public SpawnAnnotation(client, id, String:message[])
- {
- new bitstring |= RoundFloat(Pow(2.0, float(client)));
- if (bitstring > 1)
- {
- new Handle:event = CreateEvent("show_annotation");
- if (event != INVALID_HANDLE)
- {
- SetEventFloat(event, "worldPosX", g_AnnotationPosition[id][0]);
- SetEventFloat(event, "worldPosY", g_AnnotationPosition[id][1]);
- SetEventFloat(event, "worldPosZ", g_AnnotationPosition[id][2]);
- SetEventFloat(event, "lifetime", 10.0);
- SetEventInt(event, "id", id);
- SetEventString(event, "text", g_AnnotationText[id]);
- SetEventInt(event, "visibilityBitfield", bitstring);
- FireEvent(event);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement