Help with teleport
#1

Hello!

Can someone tell me how to make random teleport system?
When i write /dm
i will spawn at 3 places not only 1.
When i write one time i will spawn in one place when i write again /dm i will spawn in another place. How to do it please help me.
Reply
#2

I think You make a Fault or didnt close It. or you did make wrong CMD
Reply
#3

pawn Код:
new Float:teleports[][4] = {
{x, y, z, angle},
{x, y, z, angle},
{x, y, z, angle}
};

To teleport to one of those randomly:

new rand = random(sizeof(teleports));
SetPlayerPos(playerid, teleports[rand][0], teleports[rand][1], teleports[rand][2]);
SetPlayerFacingAngle(playerid, teleports[rand][3]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)