Problem with 'X' in PointStripped - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with 'X' in PointStripped (
/showthread.php?tid=346049)
Problem with 'X' in PointStripped -
Aira - 27.05.2012
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
{
}
}
Re: Problem with 'X' in PointStripped -
MP2 - 27.05.2012
I honestly have no idea what you're asking, sorry. Try and explain clearly.
Re: Problem with 'X' in PointStripped -
Aira - 27.05.2012
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?