Also wenn ich an der einer base steh von frakid 17 und mach dort /enter komm ich in des frakhaus wo ich in der fraktion bin(frakid 12)...
wie kann ich machen das es NUR an dem Haus funktioniert in der fraktion wo man ist?
Immoment:
if (strcmp(cmdtext, "/enter", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2526.8730, -1033.9093, 69.5793) && PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerPos(playerid,318.4036,1119.4199,1083.8828);
SetPlayerInterior(playerid, 5);
SetPlayerVirtualWorld(playerid,3);
}
else if(IsPlayerInRangeOfPoint(playerid,3.0,1939.2244,-1115.5229,27.4523) && PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
SetPlayerPos(playerid,318.4036,1119.4199,1083.8828);
SetPlayerFacingAngle(playerid,83.1490);
SetPlayerInterior(playerid,5);
SetPlayerVirtualWorld(playerid,1);
}
else if(IsPlayerInRangeOfPoint(playerid,3.0,2495.3057,-1690.6206,14.7656) && PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
SetPlayerPos(playerid,2807.7034,-1172.1710,1025.5703);
SetPlayerFacingAngle(playerid,83.1490);
SetPlayerInterior(playerid,8);
SetPlayerVirtualWorld(playerid,1);
}
return 1;
}