Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.41 KB | None | 0 0
  1. // ко всем сток
  2. Fish_IsPlayerNearPoint(playerid) {
  3.     for(new i; i < MAX_POINT_SONAR; i ++) {
  4.         if( IsPlayerInDynamicArea(playerid, fish_sonar_area[i]) )
  5.             return 1;
  6.     }
  7.     return 0;
  8. }
  9.  
  10. // в секундный таймер
  11. if( player_fish[playerid][pIsFish ) {
  12.     if( !Fish_IsPlayerNearPoint(playerid) ) {
  13.         player_fish[playerid][pSonar] = 0.0;
  14.         Fish_ShowTextDrawForPlayer(playerid, true);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement