#include <a_samp>new bisztro;new bisztroki;new etterem;new etteremki;public OnGameModeInit( ){ bisztro = CreatePickup(1239,25,X,Y,Z,0); bisztroki = CreatePickup(1239,25,X,Y,Z,1); etterem = CreatePickup(1239,25,X,Y,Z,1); etteremki = CreatePickup(1239,25,X,Y,Z,2); return 1;}public OnPlayerPickUpPickup(playerid, pickupid){ if(pickupid == bisztro) { SetPlayerPos(playerid,X,Y,Z); SetPlayerVirtualWorld(playerid,1); } if(pickupid == etterem) { SetPlayerPos(playerid,X,Y,Z); SetPlayerVirtualWorld(playerid,2); } if(pickupid == bisztroki) { SetPlayerPos(playerid,X,Y,Z); SetPlayerVirtualWorld(playerid,0); } if(pickupid == etteremki) { SetPlayerPos(playerid,X,Y,Z); SetPlayerVirtualWorld(playerid,1); } return 1;}
new pickup, pickup2;
pickup2 = CreatePickup(Hol legyen(Éterem elötti kordináta kell ide));
if(pickupid == pickup){SetPlayerInterior(playerid, 1); //1 az olasz éteremé asszem de majd meglátodSetPlayerPos(playerid,452.489990,-18.179698,1001.132812);
SetPlayerInterior(playerid, 0);SetPlayerPos(playerid,Kordináta kell ide miután kiteléz);TogglePlayerControllable(playerid, false);SetTimerEx(\"back\", 1000, false, \"i\", playerid);}return 1;}forward back(playerid);public back(playerid){TogglePlayerControllable(playerid,true);SetPlayerPos(playerid,Ugyan az a kordináta);return 1;}
if(strcmp(cmd, \"/tele-bistro\", true) == 0) {
SetPlayerInterior(playerid, 0);
SetPlayerPos(ide kell az interior teleport kordinátája amit az int-ben mentettél le).(pl: 185.1548, 48.6846.568.4756)
return 1;
}
SetPlayerInterior(playerid, 1);
SetPlayerPos(-794.806396,497.738037,1376.195312);
Buba ilyen copy and paste high.VW-t felesleges állítani. Inkább interiort kéne..