Advertisement
Custura

Linia 4415

Apr 7th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. forward IsPlayerInTurf(playerid, turfid);
  2. public IsPlayerInTurf(playerid, turfid)
  3. {
  4. if(IsPlayerConnected(playerid))
  5. {
  6. if(turfid == -1)
  7. {
  8. return 0;
  9. }
  10. new Float:x, Float:y, Float:z;
  11. GetPlayerPos(playerid,x,y,z);
  12. if(x >= TurfInfo[turfid][zMinX] && x < TurfInfo[turfid][zMaxX] && y >= TurfInfo[turfid][zMinY] && y < TurfInfo[turfid][zMaxY])// Linia 4415 este aici
  13. {
  14. return 1;
  15. }
  16. }
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement