Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: (pomieszczenia)
1. [INNE] Pickup do interiora (pomieszczenia)
Witam ostatnio zrobi?em pickupy ale kiedy wchodz? w niego to przenosi mnie w to miejsce co chce ale nic tam nie ma ?adnego pomieszczenia i spadam w d?? a wsp??rz?dne s? poprawna.


Kod:

#include <a_samp>

new teleport[2];

public OnGameModeInit()
{
AddStaticPickup(1273, 23, 2229.8308, -1721.1870, 13.5605, -1);
teleport[0] = CreatePickup(1273, 23, 2229.8308, -1721.1870, 13.5605, 0);

AddStaticPickup(1273, 1, 772, -4, 1001, -1);
teleport[1] = CreatePickup(1273, 1, 772, -4, 1001, 0);

return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == teleport[0])
{
SetPlayerPos(playerid, 770.7478, 1.3177, 1000.7228);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid, "~w~Silownia", 5000, 1);
return 1;
}

if(pickupid == teleport[1])
{
SetPlayerPos(playerid, 2227.0947, -1724.1692, 13.5503);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid, "~w~2", 5000, 1);
return 1;
}



return 0;
}


Za pomoc :piwo: