Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ко всем сток
- Fish_IsPlayerNearPoint(playerid) {
- for(new i; i < MAX_POINT_SONAR; i ++) {
- if( IsPlayerInDynamicArea(playerid, fish_sonar_area[i]) )
- return 1;
- }
- return 0;
- }
- // в секундный таймер
- if( player_fish[playerid][pIsFish ) {
- if( !Fish_IsPlayerNearPoint(playerid) ) {
- player_fish[playerid][pSonar] = 0.0;
- Fish_ShowTextDrawForPlayer(playerid, true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement