Advertisement
Sem_Loreann

Untitled

Mar 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. void LoadActors()
  2. {
  3. int time = GetTickCount();
  4. if(!cache_num_rows()) return true;
  5. for(int idx = 0, ids = 1; idx < cache_num_rows(); ++idx, ++ids)
  6. {
  7. cache_get_value_index_int(idx, 0, ActorsInfo[ids][aID]);
  8. cache_get_value_index_int(idx, 1, ActorsInfo[ids][aSkin]);
  9. cache_get_value_index_float(idx, 2, ActorsInfo[ids][aCord][0]);
  10. cache_get_value_index_float(idx, 3, ActorsInfo[ids][aCord][1]);
  11. cache_get_value_index_float(idx, 4, ActorsInfo[ids][aCord][2]);
  12. cache_get_value_index_float(idx, 5, ActorsInfo[ids][aCord][3]);
  13. cache_get_value_index_int(idx, 6, ActorsInfo[ids][aBible]);
  14. cache_get_value_index_int(idx, 7, ActorsInfo[ids][aAnim]);
  15. cache_get_value_index(idx, 8, ActorsInfo[ids][aName], 32);
  16.  
  17. ActorsInfo[ids][aID] = CreateActor(ActorsInfo[ids][aSkin], ActorsInfo[ids][aCord][0], ActorsInfo[ids][aCord][1], ActorsInfo[ids][aCord][2], ActorsInfo[ids][aCord][3]);
  18. ApplyActorAnimation(ActorsInfo[ids][aID], ActorsInfo[ids][aBible], ActorsInfo[ids][aAnim], 4.1,1,1,1,1,1);
  19.  
  20. new string[70];
  21. format(string, 70, "NPC: {"#WHITE"}%s\n\n{"#WHITE"}Взаимодействие {"#YL"}H", ActorsInfo[ids][aName]);
  22. LABELACTORS[ids] = CreateDynamic3DTextLabel(string, c_YELLOW, ActorsInfo[ids][aCord][0], ActorsInfo[ids][aCord][1], ActorsInfo[ids][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
Advertisement