Sziasztok nem hozza létre a bejáratot nem adja ki a bejárat nevét valaki ha tud segítsen előre is köszönöm
http://www.kephost.com/images/2017/12/11/sa-mp-003.png ACOMMAND:makeentrance( playerid, params[] )
new siid,
type,
entid,
biz_id = -1,
tmp[256];
if( unformat(params, \"iiI(-1)\", siid, type, biz_id) ) return SendClientMessage( playerid, -1, \"{bedb7f}PARAMÉTEREK: {efe2ce}/makeentrance [si id] (típus | 0 sima 1 biznisz 2 ház)\" );
if( siid < 0 || siid > 2147483647 ) return SendClientMessage( playerid, -1, \"{ff5a4f}HIBA: {efe2ce}Az si id-nek 0 és 2 147 483 647 között kell lennie.\" );
if( FindMapBySI(siid) == -1 ) return SendClientMessage( playerid, -1, \"{ff5a4f}HIBA: {efe2ce}Egy map sem rendelkezik a megadott SI id-vel.\" );
if( type < 0 || type > 2 ) return SendClientMessage( playerid, -1, \"{ff5a4f}HIBA: {efe2ce}A típusnak 0 és 2 között kell lennie.\" );
if( type == 1 ) {
if( biz_id == -1 ) {
return SendClientMessage( playerid, -1, \"{bedb7f}PARAMÉTEREK: {efe2ce}/makeentrance [si id] (1) <biznisz id>\" );
}
if( biz_id < 0 ) return SendClientMessage( playerid, -1, \"{ff5a4f}HIBA: {efe2ce}A biznisz id-nek 0-nál nagyobbnak kell lennie.\" );
if( !strlen(BusinessInfo[biz_id][business_name]) ) return SendClientMessage( playerid, -1, \"{ff5a4f}HIBA: {efe2ce}Ez a biznisz nem létezik.\" );
}
entid = GetNextEntryID();
if( entid == -1 ) return SendClientMessage( playerid, -1, \"{ff5a4f}HIBA: {efe2ce}Több bejáratot nem lehet lerakni.\" );
GetPlayerPos( playerid, EntranceInfo[entid][ei_enter][0], EntranceInfo[entid][ei_enter][1], EntranceInfo[entid][ei_enter][2] );
new map_id = FindMapBySI( siid );
if( map_id != -1 ) {
if( ObjectLoader_Vars[map_id][map_enterto][0] == 0 && ObjectLoader_Vars[map_id][map_enterto][2] == 0 ) {
return SendClientMessage( playerid, -1, \"{ff5a4f}HIBA: {efe2ce}Ehhez a maphoz még nem helyeztél le kijáratot. (/setenter)\" );
}
EntranceInfo[entid][ei_enterto][0] = ObjectLoader_Vars[map_id][map_enterto][0];
EntranceInfo[entid][ei_enterto][1] = ObjectLoader_Vars[map_id][map_enterto][1];
EntranceInfo[entid][ei_enterto][2] = ObjectLoader_Vars[map_id][map_enterto][2];
EntranceInfo[entid][ei_enterto][3] = ObjectLoader_Vars[map_id][map_enterto][3];
EntranceInfo[entid][ei_exit][0] = ObjectLoader_Vars[map_id][map_exit][0];
EntranceInfo[entid][ei_exit][1] = ObjectLoader_Vars[map_id][map_exit][1];
EntranceInfo[entid][ei_exit][2] = ObjectLoader_Vars[map_id][map_exit][2];
}
EntranceInfo[entid][ei_exitto][0] = EntranceInfo[entid][ei_enter][0];
EntranceInfo[entid][ei_exitto][1] = EntranceInfo[entid][ei_enter][1];
EntranceInfo[entid][ei_exitto][2] = EntranceInfo[entid][ei_enter][2];
EntranceInfo[entid][ei_exitto][3] = random(180);
EntranceInfo[entid][ei_type] = type;
EntranceInfo[entid][ei_si_id] = siid;
EntranceInfo[entid][ei_vw] = GetPlayerVirtualWorld( playerid );
EntranceInfo[entid][ei_interior] = GetPlayerInterior( playerid );
format( EntranceInfo[entid][ei_title], 32, \"Új bejárat\" );
if( type == 1 ) {
format( EntranceInfo[entid][ei_title], 32, \"%s\", BusinessInfo[biz_id][business_name] );
EntranceInfo[entid][ei_business_id] = biz_id;
EntranceInfo[entid][ei_house_id] = -1;
}
else if( type == 2 ) {
format( EntranceInfo[entid][ei_title], 32, \"{f4e242}Lakóingatlan{b3b3b3}\" );
EntranceInfo[entid][ei_business_id] = -1;
EntranceInfo[entid][ei_house_id] = biz_id;
}
format( tmp, sizeof(tmp), \"%s\\n[ Bejárat ]\", EntranceInfo[entid][ei_title] );
EntranceInfo[entid][ei_labels][0] = CreateDynamic3DTextLabel( tmp, 0xb3b3b3FF, EntranceInfo[entid][ei_enter][0], EntranceInfo[entid][ei_enter][1], EntranceInfo[entid][ei_enter][2], 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, GetPlayerVirtualWorld(playerid) );
EntranceInfo[entid][ei_labels][1] = CreateDynamic3DTextLabel( \"Kijárat\", 0xffffffAA, EntranceInfo[entid][ei_exit][0], EntranceInfo[entid][ei_exit][1], EntranceInfo[entid][ei_exit][2], 25.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, (entid + 1) );
EntranceInfo[entid][ei_enabled] = true;
EntranceInfo[entid][ei_locked] = true;
EntranceInfo[entid][ei_cardlock] = false;
EntranceInfo[entid][ei_cardtolock] = entid;
EntranceInfo[entid][ei_open_at][0] = 0;
EntranceInfo[entid][ei_open_at][1] = 24;
format( EntranceInfo[entid][ei_enter_text], 24, \"%s\", EntranceInfo[entid][ei_title] );
format( EntranceInfo[entid][ei_exit_text], 24, \"Los Santos\" );
UpdateEntrance( entid );
format( tmp, sizeof(tmp), \"{9bddb3}Sikeresen leraktál egy új bejáratot({ffffff}%s{9bddb3}/{ffffff}%d{9bddb3})!\", EntranceInfo[entid][ei_title], entid );
SendClientMessage( playerid, -1, tmp );
PlayBeepSound( playerid );
return 1;
}