Problem with 'X' in PointStripped
#1

Hello, i want the X to be like from 20 to 1000, i mean because if i put (424.4867,-2236.0962,20.2703), it won't be so accurate to be called a Defence System -.-
Here's my code
pawn Code:
if(PlayerToPointStripped(75, playerid,424.4867,-2236.0962,20.2703, cx,cy,cz))
    {//Restricted Area
        if(flakauto==1)
        {
            if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
            {

            }
            else
            {
                new Float:boomx, Float:boomy, Float:boomz;
                GetPlayerPos(playerid,boomx, boomy, boomz);
                CreateExplosion(boomx, boomy , boomz, 7, 2);
                return 1;
            }
        }
        else
        {

        }
    }
Reply
#2

I honestly have no idea what you're asking, sorry. Try and explain clearly.
Reply
#3

if(PlayerToPointStripped(75, playerid,424.4867,-2236.0962,20.2703, cx,cy,cz))

Can it be like
if(PlayerToPointStripped(75, playerid,424.4867,-2236.0962,FROM 10 TOWARDS 100, cx,cy,cz))
But obviously it has errors if its like the one above
Like = > 1338 || 2000 < = or something?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)