Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function HumanDistance( player )
- {
- for ( local i = 0; i <= GetMaxPlayers(); i++ )
- {
- local human = FindPlayer( i ),
- a;
- if ( human && array_ou_conf_de_humans )
- {
- local dist = DistanceFromPoint( player.Pos.x, player.Pos.z, human.Pos.x, human.Pos.y );
- if ( dist < 15 )
- {
- if ( a ) a = a + ", " + human.Name;
- else a = human.Name + ".";
- }
- else a = null;
- }
- if ( a ) MessagePlayer( "Humanos próximos: " + b + "." );
- else MessagePlayer( "Nenhum humano por perto." );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement