Odata ai zis ca ai schimbat interiorul si e degeaba, odata ai zis ca daca scoti interioru merge. Ce sa mai inteleg acum? Te ajut eu cu TW peste 20-30 min cand ajung acasa, lasa-mi PM.
EDIT: Ai la public OnPlayerKeyStateChange
if(newkeys & KEY_SECONDARY_ATTACK) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
for(new i = 1; i < 14; i++) {
if(PlayerToPoint(2.0, playerid, DynamicFactions[i][extX], DynamicFactions[i][extY], DynamicFactions[i][extZ])) {
if(PlayerInfo[playerid][pMember] == i || i < 3 || DynamicFactions[i][fLock] == 1 || OnDuty[playerid] == 1) EnterFaction(playerid, i);
}
}
for(new i = 1; i < 14; i++) {
if(PlayerToPoint(2.0, playerid, DynamicFactions[i][fcX], DynamicFactions[i][fcY], DynamicFactions[i][fcZ])) {
if(DynamicFactions[i][fVW] == GetPlayerVirtualWorld(playerid) && DynamicFactions[i][fInterior] == GetPlayerInterior(playerid)) ExitFaction(playerid, i);
}
}
Modifica
for(new i = 1; i < 14; i++) {
modifica in for(new i = 1; i < 15; i++) {
i reprezinta id-ul factiunii(1 LSPD, 2 FBI etc).
Gamemode-ul original are 13 factiuni, de asta a fost i < 14 - 13+1, daca era i < 13 atunci i nu putea fi 13 decat sub 13(de ex: 11, 12).
Tine minte, daca vrei sa mai adaugi factiuni: i < nr. factiunilor+1