SetPlayerInArea
#1

i got this stock:
pawn Код:
stock SetPlayerInArea(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy)
{
    new Float:x = floatsub(maxx,floatdiv(floatsub(maxx,minx),2));
    new Float:y = floatsub(maxy,floatdiv(floatsub(maxy,miny),2));
    return SetPlayerPosFindZ(playerid, x, y, 1000.0);
}
it teleports the player to the middle of the area.
how can i teleport the player to a random pos in the area?
Reply


Messages In This Thread
SetPlayerInArea - by xDeadlyBoy - 16.05.2011, 05:51
Re: SetPlayerInArea - by Markx - 16.05.2011, 06:02
Re: SetPlayerInArea - by xDeadlyBoy - 16.05.2011, 06:03
Re: SetPlayerInArea - by Backwardsman97 - 16.05.2011, 06:04
Re: SetPlayerInArea - by xDeadlyBoy - 16.05.2011, 06:06
Re: SetPlayerInArea - by Backwardsman97 - 16.05.2011, 06:07
Re: SetPlayerInArea - by xDeadlyBoy - 16.05.2011, 06:11
Re: SetPlayerInArea - by [L3th4l] - 16.05.2011, 06:17
Re: SetPlayerInArea - by xDeadlyBoy - 16.05.2011, 06:21
Re: SetPlayerInArea - by Backwardsman97 - 16.05.2011, 06:23

Forum Jump:


Users browsing this thread: 1 Guest(s)