Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IsPlayerInTurf(playerid, turfid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(turfid == -1)
- {
- return 0;
- }
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(x >= TurfInfo[turfid][zMinX] && x < TurfInfo[turfid][zMaxX] && y >= TurfInfo[turfid][zMinY] && y < TurfInfo[turfid][zMaxY])
- {
- return 1;
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment