- 0
Problema interior factiune.
-
Similar Content
-
- 2 answers
- 627 views
-
Problema turf
By Soryn.,
- 3 answers
- 404 views
-
- 0 replies
- 155 views
-
- 2 replies
- 331 views
-
- 1 reply
- 203 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
RusKo69
Am schimbat interiorul la o factiune, cand ma spawnez imi arata interiorul ok dar cand intru eu in HQ mi l da pe cel vechi..
Video:
for(new i = 1; i < 20; i++) {
if(PlayerToPoint(2.0, playerid, DynamicFactions[extX], DynamicFactions[extY], DynamicFactions[extZ])) {
if(PlayerInfo[playerid][pMember] == i) EnterFaction(playerid, i);
}
}
for(new i = 1; i < 20; i++) {
if(PlayerToPoint(2.0, playerid, DynamicFactions[fcX], DynamicFactions[fcY], DynamicFactions[fcZ])) {
if(DynamicFactions[fVW] == GetPlayerVirtualWorld(playerid) && DynamicFactions[fInterior] == GetPlayerInterior(playerid)) ExitFaction(playerid, i);
}
}
function EnterFaction(playerid, fid) {
SetPlayerPosEx(playerid, DynamicFactions[fid][fcX], DynamicFactions[fid][fcY], DynamicFactions[fid][fcZ]);
SetPlayerInterior(playerid, DynamicFactions[fid][fInterior]);
SetPlayerVirtualWorld(playerid, DynamicFactions[fid][fVW]);
InHQ[playerid] = fid;
return 1;
}
function ExitFaction(playerid, fid) {
SetPlayerPosEx(playerid, DynamicFactions[fid][extX], DynamicFactions[fid][extY], DynamicFactions[fid][extZ]);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
InHQ[playerid] = 0;
return 1;
}
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.