Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. public SpawnAnnotation(client, id, String:message[])
  2. {
  3.     new bitstring |= RoundFloat(Pow(2.0, float(client)));
  4.    
  5.     if (bitstring > 1)
  6.     {
  7.         new Handle:event = CreateEvent("show_annotation");
  8.         if (event != INVALID_HANDLE)
  9.         {
  10.             SetEventFloat(event, "worldPosX", g_AnnotationPosition[id][0]);
  11.             SetEventFloat(event, "worldPosY", g_AnnotationPosition[id][1]);
  12.             SetEventFloat(event, "worldPosZ", g_AnnotationPosition[id][2]);
  13.             SetEventFloat(event, "lifetime", 10.0);
  14.             SetEventInt(event, "id", id);
  15.             SetEventString(event, "text", g_AnnotationText[id]);
  16.             SetEventInt(event, "visibilityBitfield", bitstring);
  17.             FireEvent(event);
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement