Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.94 KB | None | 0 0
  1. if (posz < 150.0f &&  inter == 0 && distGMZ >= 15.0f)
  2.  
  3.             {
  4.                 for (int idcar = 0; idcar < SAMP_MAX_VEHICLES; idcar++)
  5.                 {
  6.                     if (g_Vehicles->iIsListed[idcar] != 1) continue;
  7.                     if (g_Vehicles->iIsListed2[idcar] != 1) continue;
  8.                     if (g_Vehicles->pSAMP_Vehicle[idcar] == NULL) continue;
  9.                     if (g_Vehicles->pSAMP_Vehicle[idcar]->pGTA_Vehicle == NULL) continue;
  10.                     if (g_Vehicles->pGTA_Vehicle[i]->base.model_alt_id == 478)
  11.                     {
  12.                         float CarPosX = g_Vehicles->pSAMP_Vehicle[idcar]->pGTA_Vehicle->base.matrix[4 * 3];
  13.                         float CarPosY = g_Vehicles->pSAMP_Vehicle[idcar]->pGTA_Vehicle->base.matrix[4 * 3 + 1];
  14.                         float dist = sqrt((posz - CarPosX) * (posz - CarPosX) + (posy - CarPosY) * (posy - CarPosY));
  15.                         if (dist < 16.0f)
  16.  
  17.                         {
  18.                             sprintf(buffer1, "<GM>: %s(%i) Здоровье: %i | LVL: %d", getPlayerName(i), i, hp, lvl);
  19.                             addToChatWindow(buffer1, samp_color_get(i), -1);
  20.                         }
  21.                     }
  22.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement