Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1.  
  2. new bool:PunktJest = false,
  3. string[124];
  4.  
  5. for(new i = 0; i < sizeof(zalarozla); i++)
  6. {
  7. if(IsPlayerInRangeOfPoint(playerid, 2.0, zalarozla[i][coordX], zalarozla[i][coordY], zalarozla[i][coordZ]) //2.0 to odległość o punktu w metrach
  8. {
  9. PunktJest = true;
  10. format(string, 124, "Jesteś w punkcie o nazwie: %s", zalarozla[i][Nazwa]);
  11. SendClientMessage(playerid, 0xFFFFFFFF, string);
  12. break;
  13. }
  14. }
  15.  
  16. if(!PunktJest) return SendClientMessage(playerid, 0xFFFFFFFF, "Nie jesteś w żadnym punkcie!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement