Massive teleporting
#1

Hey guys, How to make a command, when player writes this command he and all who is near he will be teleported somewhere? Please help me, cus I don't know how to make it
Reply
#2

I think a combination of IsPlayerInRangeOf and SetPlayerPos will do the trick.
Reply
#3

This is how I'd do it.
pawn Код:
CMD:radiustele(playerid, params[])
{
    new Float:radius = 10.0, Float:pos[3];
    GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
   
    foreach(Players, p)
    {
        if(IsPlayerInRangeOfPoint(p, radius, pos[0], pos[1], pos[2]))
        {
            SetPlayerPos(p, 0, 0, 0); // Location
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)