Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward IsPlayerInTurf(playerid, turfid);
- 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])// Linia 4415 este aici
- {
- return 1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement