A bit more flexible PlayerWorldBounds?
#4

It's possible, just check if the player is in the area, like hiddos said.

In addition i made a totally useless example with a graphic that actually nobody will understand:



In this example you can('t) see, that you just need to divide the area into some squares, like you also can('t) see here (maybe here you can('t) see it better than the last one):



For this example this pawn code could be used:
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);

if (y<90 && y>75 && x<130 && x>100) //Player is in the first square
else //Player isn't in the first square
Then you just need to go on by adding more square and your area will be finished. If you want it to be exactly like worldbounds, you will need to use setplayervelocity, to push the player away from the border.
Reply


Messages In This Thread
A bit more flexible PlayerWorldBounds? - by AirGuy92 - 14.11.2010, 10:02
Re: A bit more flexible PlayerWorldBounds? - by The_Moddler - 14.11.2010, 10:55
Re: A bit more flexible PlayerWorldBounds? - by Hiddos - 14.11.2010, 10:56
Re: A bit more flexible PlayerWorldBounds? - by DeathOnaStick - 14.11.2010, 11:14
Re: A bit more flexible PlayerWorldBounds? - by AirGuy92 - 14.11.2010, 15:46

Forum Jump:


Users browsing this thread: 1 Guest(s)