Ich will für eine Base /enter & /exit reinmachen. Das /exit klappt aber das /enter nicht. woran kann das liegen?
if(strcmp(cmd, "/enter", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,2632.7478,1824.1743,11.0234))
{
SetPlayerPos(playerid,-2636.5781,1403.4066,906.4609);
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,0);
}
}
}
if(strcmp(cmd, "/exit", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,-2636.5781,1403.4066,906.4609))
{
SetPlayerPos(playerid,2633.3840,1824.0403,11.0161);
SetPlayerFacingAngle(playerid,86.0156);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}
}