Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (posz < 150.0f && inter == 0 && distGMZ >= 15.0f)
- {
- for (int idcar = 0; idcar < SAMP_MAX_VEHICLES; idcar++)
- {
- if (g_Vehicles->iIsListed[idcar] != 1) continue;
- if (g_Vehicles->iIsListed2[idcar] != 1) continue;
- if (g_Vehicles->pSAMP_Vehicle[idcar] == NULL) continue;
- if (g_Vehicles->pSAMP_Vehicle[idcar]->pGTA_Vehicle == NULL) continue;
- if (g_Vehicles->pGTA_Vehicle[i]->base.model_alt_id == 478)
- {
- float CarPosX = g_Vehicles->pSAMP_Vehicle[idcar]->pGTA_Vehicle->base.matrix[4 * 3];
- float CarPosY = g_Vehicles->pSAMP_Vehicle[idcar]->pGTA_Vehicle->base.matrix[4 * 3 + 1];
- float dist = sqrt((posz - CarPosX) * (posz - CarPosX) + (posy - CarPosY) * (posy - CarPosY));
- if (dist < 16.0f)
- {
- sprintf(buffer1, "<GM>: %s(%i) Здоровье: %i | LVL: %d", getPlayerName(i), i, hp, lvl);
- addToChatWindow(buffer1, samp_color_get(i), -1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement