Raised This Month: $ Target: $400
 0% 

Check if player is in screen


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dutchmeat
Senior Member
Join Date: Sep 2006
Old 11-28-2006 , 03:36   Re: Check if player is in screen
Reply With Quote #5

Code:
new spotted[33] public server_frame(){ new Float:origin[3] new players[32],pNum get_players(players,pNum,"a")  for(new i=0;i<pNum;i++)  {   get_user_origin(i, origin)   if( is_in_viewcone(id, origin)){   spotted[i] = 1 //the player got spotted   }else{   spotted[i] = 0 //make sure that the flag is off while not spotted.   }  } }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.

Last edited by dutchmeat; 11-28-2006 at 03:43.
dutchmeat is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode