Advertisement
Guest User

Untitled

a guest
Apr 4th, 2011
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. stock IsPlayerInRangeOfObject(playerid, objectid, Float:range) //By DarKRaiN
  2. {
  3.  
  4. if(IsObjectConnected(objectid))
  5. {
  6. new Float:x1, Float:y1, Float:z1;
  7. GetObjectPos(objectid, x1, y1, z1);
  8. return IsPlayerInSphere(playerid,x1,y1,z1,range);
  9. }
  10. return false;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement