DeluxeGG

Untitled

Mar 18th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. void LoadActors()
  2. {
  3. int time = GetTickCount();
  4. if(!cache_num_rows()) return true;
  5. for(int i = 0; i < cache_num_rows(); i++)
  6. {
  7. cache_get_value_index_int(i, 0, ActorsInfo[i][aID]);
  8. cache_get_value_index_int(i, 1, ActorsInfo[i][aSkin]);
  9. cache_get_value_index_float(i, 2, ActorsInfo[i][aCord][0]);
  10. cache_get_value_index_float(i, 3, ActorsInfo[i][aCord][1]);
  11. cache_get_value_index_float(i, 4, ActorsInfo[i][aCord][2]);
  12. cache_get_value_index_float(i, 5, ActorsInfo[i][aCord][3]);
  13. cache_get_value_index(i, 6, ActorsInfo[i][aBible], 15);
  14. cache_get_value_index(i, 7, ActorsInfo[i][aAnim], 32);
  15. cache_get_value_index(i, 8, ActorsInfo[i][aName], 32);
  16. ActorsInfo[i][aID] = CreateActor(ActorsInfo[i][aSkin], ActorsInfo[i][aCord][0], ActorsInfo[i][aCord][1], ActorsInfo[i][aCord][2], ActorsInfo[i][aCord][3]);
  17. ApplyActorAnimation(ActorsInfo[i][aID], ActorsInfo[i][aBible], ActorsInfo[i][aAnim], 4.1,1,1,1,1,1);
  18. SetActorInvulnerable(ActorsInfo[i][aID]);
  19.  
  20. new string[70];
  21. format(string, 70, "NPC: {"#WHITE"}%s\n\n{"#WHITE"}Взаимодействие {"#YL"}H", ActorsInfo[i][aName]);
  22. LABELACTORS[i] = CreateDynamic3DTextLabel(string, c_YELLOW, ActorsInfo[i][aCord][0], ActorsInfo[i][aCord][1], ActorsInfo[i][aCord][2]+1.1,5.0);
  23. TOTALACTORS++;
  24. }
  25. printf("[Load Actors]: loading %i bad %i (ms)", TOTALACTORS, GetTickCount() - time);
  26. return true;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment