17.01.2018, 11:42
I added the break; but now it breaks the loop after the first line/teleport and every pickup is teleporting me to the FIRST set of tele co ords on the list (lvchIN)
Is this what you meant?
Is this what you meant?
Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid){ for(new i; i < MAX_PICKUP; i++) { SetPlayerPos(playerid, gPickup[i][tPos][0], gPickup[i][tPos][1], gPickup[i][tPos][2] + 0.5); // sets player pos SetPlayerInterior(playerid, gPickup[i][Interior]); SetPlayerVirtualWorld(playerid, gPickup[i][VirtualWorld]); break; } return 1;