Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function HumanDistance( player )//By Lucas
- {
- for ( local i = 0; i <= GetMaxPlayers(); i++ )
- {
- local human = FindPlayer( i ),
- dist = DistanceFromPoint( player.Pos.x, player.Pos.z, human.Pos.x, human.Pos.y ),
- a;
- if ( human && status[ human.ID ].Profile < 3 )
- {
- if ( dist.tointeger() < 15 )
- {
- if ( a ) a = a + ", " + human.Name;
- else a = human.Name + ".";
- }
- }
- }
- if ( a ) P_MSG( "Humanos proximos: " + b + ".","Human nearby: " + b + ".", player, 3 );
- else P_MSG( "Nenhum humano por perto.","No human around.", player, 1 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement