#1

Ok so i made a toll and i want people to only be abled to enter it from ONE side the right road side... so i did this:
Код:
if(IsPlayerInRangeOfPoint(playerid, 7.5, ATollGates[TollGate][OpenX], ATollGates[TollGate][OpenY] + 7, ATollGates[TollGate][OpenZ]))
But this makes it only open from NORTH side.... like this:

By thimo144 at 2011-12-25
While i want it to open at THIS side too:

By thimo144 at 2011-12-25
Anyone idea? :S
Reply
#2

Could use IsPlayerInArea
Reply
#3

Can u make that dynamic? :S if yes tell me how pl0x
Reply
#4

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 15.0, ATollGates[TollGate][OpenX], ATollGates[TollGate][OpenY] + 7, ATollGates[TollGate][OpenZ]));
If doesn't work, try increasing the radius ( 15. 0 ).
Reply
#5

Well sushrab thats what i dont want then it is getting enterable from both sides i want only the right side...
This is what i made now but it doesnt work..
Код:
if(IsPlayerInArea(playerid, ATollGates[TollGate][OpenX],  ATollGates[TollGate][OpenX] + 5, ATollGates[TollGate][OpenY], ATollGates[TollGate][OpenY] + 5))
How to fix it? :S
Reply
#6

You could check the facing angle :$
Or you could get other vars and make the range of point smaller.
Reply
#7

Quote:
Originally Posted by FireCat
Посмотреть сообщение
You could check the facing angle :$
Or you could get other vars and make the range of point smaller.
Any idea to do it with IsPlayerInarea?
Reply
#8

Quote:
Originally Posted by thimo
Посмотреть сообщение
Any idea to do it with IsPlayerInarea?
I don't think that's a good idea, but you could give it a try!
Reply
#9

Quote:
Originally Posted by FireCat
Посмотреть сообщение
I don't think that's a good idea, but you could give it a try!
How? :P i've got this but... It doesnt seem to work:
Код:
if(IsPlayerInArea(playerid, ATollGates[TollGate][OpenX],  ATollGates[TollGate][OpenX] + 5, ATollGates[TollGate][OpenY], ATollGates[TollGate][OpenY] + 5))
Reply
#10

Quote:
Originally Posted by thimo
Посмотреть сообщение
How? :P
Hehe I could do it for you, but I need the coords ^^.
Do you have any test server opened? :b
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)